mirror of
https://github.com/gre/gl-react.git
synced 2026-01-18 16:16:59 +00:00
648 B
648 B
The API
var GL = require("gl-react");
// OR
var GL = require("gl-react-native");
GL.Shaders.create
GL.Shaders.create(spec) allows to create shaders that can be used later in GL.View component.
GL.View
GL.View is a React Component that renders a given shader with uniforms (parameters to send to the shader).
GL.Uniform
(advanced) GL.Uniform allows to render a shader with any content (any React Native component rasterized as a uniform texture).
GL.createComponent
GL.createComponent is the class to extends to implement a GL component.