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

Function getFragmentShaderForRenderPass

docs/app/js/sanddance-app.js:96042–96053  ·  view source on GitHub ↗
(module)

Source from the content-addressed store, hash-verified

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) {
96045 var func = typeof pass.filter === "string" ? pass.filter : "".concat(module.name, "_filterColor");
96046 return FILTER_FS_TEMPLATE(func);
96047 }
96048 if (pass.sampler) {
96049 var _func = typeof pass.sampler === "string" ? pass.sampler : "".concat(module.name, "_sampleColor");
96050 return SAMPLER_FS_TEMPLATE(_func);
96051 }
96052 return null;
96053}
96054
96055},{"@babel/runtime/helpers/esm/classCallCheck":"3owyr","@babel/runtime/helpers/esm/createClass":"1VLPU","@babel/runtime/helpers/esm/inherits":"jtMi4","@babel/runtime/helpers/esm/possibleConstructorReturn":"6e4fp","@babel/runtime/helpers/esm/getPrototypeOf":"jf1Jo","../lib/effect":"6aqmc","../passes/screen-pass":"5eNOu","@luma.gl/core":"WBJLR","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"5eNOu":[function(require,module,exports) {
96056var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers 1

createPassesFunction · 0.70

Calls 2

FILTER_FS_TEMPLATEFunction · 0.70
SAMPLER_FS_TEMPLATEFunction · 0.70

Tested by

no test coverage detected