MCPcopy Create free account
hub / github.com/microsoft/SandDance / SAMPLER_FS_TEMPLATE

Function SAMPLER_FS_TEMPLATE

docs/app/js/sanddance-app.js:96039–96041  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

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};
96039var SAMPLER_FS_TEMPLATE = function SAMPLER_FS_TEMPLATE(func) {
96040 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 = ".concat(func, "(texture, texSize, texCoord);\n}\n");
96041};
96042function getFragmentShaderForRenderPass(module) {
96043 var pass = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : module;
96044 if (pass.filter) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected