UNPKG

gl-react

Version:

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

43 lines (42 loc) 942 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; /** * A set of Uniform symbols you can pass to a uniform. (recognized and interpreted by Node) */ const Uniform = { /** * Inject the texture of the previous framebuffer state */ Backbuffer: "_Backbuffer_", /** * Inject the texture of the previous framebuffer state of another Node pointed by its reference. */ backbufferFrom: node => ({ type: "BackbufferFrom", node }), /** * the framebuffer size itself */ Resolution: "_Resolution_", /** * Inject the size of a given Texture input */ textureSize: obj => ({ type: "TextureSize", obj }), /** * Inject the width/height ratio of a given Texture input */ textureSizeRatio: obj => ({ type: "TextureSize", obj, ratio: true }) }; var _default = exports.default = Uniform; //# sourceMappingURL=Uniform.js.map