# GL.View `GL.View` is a React Component that renders a given shader with uniforms (parameters to send to the shader). **Quick Examples:** Renders a "standalone" shader: ```js ``` Renders a shader with uniform parameters: ```js /* // in myEffect2: uniform float floatValue; uniform vec3 vec3Value; */ ``` Renders a shader with an image (texture): ```js /* // in myEffect3: uniform sampler2D textureName; */ ``` ## Props - **`shader`** *(id created by GL.Shaders.create)* **(required)**: The shader to use for rendering the `GL.View`. - **`width`** and **`height`** *(Number)* **(required)**: the size of the view. - **`uniforms`** *(object)*: an object that contains all uniform parameters to send to the shader. The key is the uniform name and the value is whatever value that makes sense for the uniform's type (see below). - **`opaque`** *(bool)*: specify if the view should be opaque. By default, it is true, meaning that the GL View won't support texture opacity and alpha channel. - **`preload`** *(bool)*: specify if the view should initially not render until all images are loaded. `false` by default, this behavior should be explicitly enabled. - **`onLoad`** *(function)*: callback called when the view is ready (has loaded all images in case of preload). - **`onProgress`** *(function)*: callback to track the progress of a loading (in case of preload). it receives `{progress,loaded,total}` (in React Native, this object is in `{nativeEvent}`). - **`autoRedraw`** *(bool)*: enable the continuous rendering for dynamic content (like a ``, `