ShaderToTexture_v2 Op

ShaderToTexture

render a shader into a texture


<p>Designed to be mainly used with the customShader op.</p>


Full Name
  • Ops.Gl.Shader.ShaderToTexture_v2
Visibility
  • Core Op - Official cables op
License
  • MIT
Authorgithub


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:

<i>integer</i>

)

Width (Number:

<i>integer</i>

)

Width of the texture in pixels

Height (Number:

<i>integer</i>

)

Height of the texture in pixels

Texture settings

filter index (Number:

<i>integer</i>

)

Pick a filter mode with an integer

Anisotropic index (Number:

<i>integer</i>

)

wrap index (Number:

<i>integer</i>

)

Pick a wrap mode with an integer

Pixel Format index (Number:

<i>integer</i>

)

Num Textures index (Number:

<i>integer</i>

)

OUTPUT PORTS


Next (Trigger)

<p>Trigger out</p>

Texture (Object)

<p>Texture out</p>

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

Patches using ShaderToTexture_v2

  • Examples
  • Public
  • My Patches

Changelog


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