UNPKG

gl-react

Version:

Universal React library, write and compose WebGL shaders, implement complex effects using a descriptive paradigm

24 lines (21 loc) 501 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GLSLSymbol = void 0; exports.default = GLSL; const GLSLSymbol = exports.GLSLSymbol = "GLSL"; /** * object created by **GLSL``** string template */ /** * GLSL string template to write your shader. */ function GLSL(strings, ...values) { let code = ""; for (let i = 0; i < strings.length; i++) { code += (i === 0 ? "" : values[i - 1]) + strings[i]; } return code; } //# sourceMappingURL=GLSL.js.map