babylon.convolutionPostProcess.js 566 B

12345678910111213141516
  1. var BABYLON = BABYLON || {};
  2. (function () {
  3. BABYLON.ConvolutionPostProcess = function (name, kernelMatrix, ratio, camera, samplingMode) {
  4. BABYLON.PostProcess.call(this, name, "convolution", ["kernelMatrix"], null, ratio, camera, samplingMode);
  5. this.kernelMatrix = kernelMatrix;
  6. var that = this;
  7. this.onApply = function (effect) {
  8. effect.setMatrix("kernelMatrix", that.kernelMatrix);
  9. };
  10. };
  11. BABYLON.ConvolutionPostProcess.prototype = Object.create(BABYLON.PostProcess.prototype);
  12. })();