UNPKG

gl-react

Version:

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

39 lines 995 B
import type Node from "./Node"; import type Bus from "./Bus"; /** * A set of Uniform symbols you can pass to a uniform. (recognized and interpreted by Node) */ declare const Uniform: { /** * Inject the texture of the previous framebuffer state */ Backbuffer: string; /** * Inject the texture of the previous framebuffer state of another Node pointed by its reference. */ backbufferFrom: (node: Node | Bus) => { type: "BackbufferFrom"; node: Node | Bus; }; /** * the framebuffer size itself */ Resolution: string; /** * Inject the size of a given Texture input */ textureSize: (obj: any) => { type: "TextureSize"; obj: any; }; /** * Inject the width/height ratio of a given Texture input */ textureSizeRatio: (obj: any) => { type: "TextureSize"; obj: any; ratio: true; }; }; export default Uniform; //# sourceMappingURL=Uniform.d.ts.map