diff --git a/docs/api/Target.md b/docs/api/Target.md index ec98b9e92d78da504d6a80a39a264fad909b4867..5edde47124cb2529a84eb2dd84baca3503fbe683 100644 --- a/docs/api/Target.md +++ b/docs/api/Target.md @@ -8,8 +8,10 @@ ```js render () { - return + return ...any React Native components @@ -21,4 +23,4 @@ render () { ## Props -- **`uniform`** *string* **(required)**: The name of the shader texture uniform to use for rendering the content. +- **`uniform`** *(string)* **(required)**: The name of the shader texture uniform to use for rendering the content. diff --git a/docs/api/View.md b/docs/api/View.md index 4ff93a2ee44d0f5e506049a457a1c4324e8c0e7d..1b96b26a3d1cf489bd49db7761c536c0dc29142e 100644 --- a/docs/api/View.md +++ b/docs/api/View.md @@ -8,8 +8,10 @@ Renders a "standalone" shader: ```js render () { - return ; + return ; } ``` @@ -17,8 +19,10 @@ Renders a shader with uniform parameters: ```js render () { - return ; @@ -50,10 +56,10 @@ render () { ## 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`**: 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`**: 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. +- **`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. ## Uniform types