babylon.filterPostProcess.js 991 B

123456789101112131415161718192021222324
  1. var __extends = this.__extends || function (d, b) {
  2. for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
  3. function __() { this.constructor = d; }
  4. __.prototype = b.prototype;
  5. d.prototype = new __();
  6. };
  7. var BABYLON;
  8. (function (BABYLON) {
  9. var FilterPostProcess = (function (_super) {
  10. __extends(FilterPostProcess, _super);
  11. function FilterPostProcess(name, kernelMatrix, ratio, camera, samplingMode, engine, reusable) {
  12. var _this = this;
  13. _super.call(this, name, "filter", ["kernelMatrix"], null, ratio, camera, samplingMode, engine, reusable);
  14. this.kernelMatrix = kernelMatrix;
  15. this.onApply = function (effect) {
  16. effect.setMatrix("kernelMatrix", _this.kernelMatrix);
  17. };
  18. }
  19. return FilterPostProcess;
  20. })(BABYLON.PostProcess);
  21. BABYLON.FilterPostProcess = FilterPostProcess;
  22. })(BABYLON || (BABYLON = {}));
  23. //# sourceMappingURL=babylon.filterPostProcess.js.map