beta
cables is under heavy development.
There might be one or another bug, please let us know about it!

Shader2Texture Op

Ops.Gl.Shader.Shader2Texture


Shader2Texture
Namespace: Ops.Gl.Shader

Op author: pandur

render a shader into a texture


Designed to be mainly used with the customShader op.



Inputs

Render (Trigger)

Trigger the op

Shader (Object)

Shader to turn into a texture

Texture Size

Use Viewport Size (boolean /Number)

When enabled the texture is the size of the viewport

Width (integer /Number)

Width of the texture in pixels

Height (integer /Number)

Height of the texture in pixels

Texture settings

filter index (integer /Number)

Pick a filter mode with an integer

wrap index (integer /Number)

Pick a wrap mode with an integer

Floating Point (boolean /Number)

Enable floating point precision

Num Textures index (integer /Number)

Outputs

Next (Trigger)

Trigger out

Texture (Object)

Texture out

Texture 2 (Object)
Texture 3 (Object)
Texture 4 (Object)
Caught a mistake or want to contribute to the documentation?

Edit Documentation 

custom shader

the patch uses customShader Op to create a custom shader.

that shader is then rendered to a texture (displayed in the background)

the shader is also applied as a material and rendered on the cube.

Open Example In Editor

Patches using Shader2Texture