123456789101112131415161718 |
- "use strict";
- var BABYLON = BABYLON || {};
- (function () {
- BABYLON.ConvolutionPostProcess = function (name, kernelMatrix, ratio, camera, samplingMode) {
- BABYLON.PostProcess.call(this, name, "convolution", ["kernelMatrix"], null, ratio, camera, samplingMode);
-
- this.kernelMatrix = kernelMatrix;
- var that = this;
- this.onApply = function (effect) {
- effect.setMatrix("kernelMatrix", that.kernelMatrix);
- };
- };
-
- BABYLON.ConvolutionPostProcess.prototype = Object.create(BABYLON.PostProcess.prototype);
- })();
|