(gl, module, id, moduleSettings)
| 96009 | return PostProcessEffect1; |
| 96010 | }((0, _effectDefault.default)); |
| 96011 | function createPasses(gl, module, id, moduleSettings) { |
| 96012 | if (module.filter || module.sampler) { |
| 96013 | var fs = getFragmentShaderForRenderPass(module); |
| 96014 | var pass = new (0, _screenPassDefault.default)(gl, { |
| 96015 | id: id, |
| 96016 | module: module, |
| 96017 | fs: fs, |
| 96018 | moduleSettings: moduleSettings |
| 96019 | }); |
| 96020 | return [ |
| 96021 | pass |
| 96022 | ]; |
| 96023 | } |
| 96024 | var passes = module.passes || []; |
| 96025 | return passes.map(function(pass, index) { |
| 96026 | var fs = getFragmentShaderForRenderPass(module, pass); |
| 96027 | var idn = "".concat(id, "-").concat(index); |
| 96028 | return new (0, _screenPassDefault.default)(gl, { |
| 96029 | id: idn, |
| 96030 | module: module, |
| 96031 | fs: fs, |
| 96032 | moduleSettings: moduleSettings |
| 96033 | }); |
| 96034 | }); |
| 96035 | } |
| 96036 | var FILTER_FS_TEMPLATE = function FILTER_FS_TEMPLATE(func) { |
| 96037 | return "uniform sampler2D texture;\nuniform vec2 texSize;\n\nvarying vec2 position;\nvarying vec2 coordinate;\nvarying vec2 uv;\n\nvoid main() {\n vec2 texCoord = coordinate;\n\n gl_FragColor = texture2D(texture, texCoord);\n gl_FragColor = ".concat(func, "(gl_FragColor, texSize, texCoord);\n}\n"); |
| 96038 | }; |
no test coverage detected