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

ShaderToTexture_v2 Op

ShaderToTexture

render a shader into a texture


Designed to be mainly used with the customShader op.


Edit Documentation

Full Name
  • Ops.Gl.Shader.ShaderToTexture_v2
Visibility
  • Core Op - Official cables op
Author


 

Example Patch 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 In Editor

INPUT PORTS


Render (Trigger)

Trigger the op

Shader (Object:shader)

Shader to turn into a texture

Texture Size

Size index (Number:integer )
Width (Number:integer )

Width of the texture in pixels

Height (Number:integer )

Height of the texture in pixels

Texture settings

filter index (Number:integer )

Pick a filter mode with an integer

Anisotropic index (Number:integer )
wrap index (Number:integer )

Pick a wrap mode with an integer

Pixel Format index (Number:integer )
Num Textures index (Number:integer )

OUTPUT PORTS


Next (Trigger)

Trigger out

Texture (Object)

Texture out

Texture 2 (Object)
Texture 3 (Object)
Texture 4 (Object)

Usages of ShaderToTexture_v2

  • Examples
  • Public
  • My Patches
  • Ops

Changelog


renameOps.Gl.Shader.Shader2Texture renamed to Ops.Gl.Shader.ShaderToTextureuser avatarpandur - 2023-09-14
cloned op from Ops.Gl.Shader.ShaderToTextureuser avatarpandur - 2023-12-19