babylon.filterPostProcess.js 1.0 KB

12345678910111213141516171819202122
  1. var __extends = (this && 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. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  5. };
  6. var BABYLON;
  7. (function (BABYLON) {
  8. var FilterPostProcess = (function (_super) {
  9. __extends(FilterPostProcess, _super);
  10. function FilterPostProcess(name, kernelMatrix, ratio, camera, samplingMode, engine, reusable) {
  11. var _this = this;
  12. _super.call(this, name, "filter", ["kernelMatrix"], null, ratio, camera, samplingMode, engine, reusable);
  13. this.kernelMatrix = kernelMatrix;
  14. this.onApply = function (effect) {
  15. effect.setMatrix("kernelMatrix", _this.kernelMatrix);
  16. };
  17. }
  18. return FilterPostProcess;
  19. })(BABYLON.PostProcess);
  20. BABYLON.FilterPostProcess = FilterPostProcess;
  21. })(BABYLON || (BABYLON = {}));
  22. //# sourceMappingURL=babylon.filterPostProcess.js.map