ShaderToTexture_v2 Op

ShaderToTexture

render a shader into a texture


Designed to be mainly used with the customShader op.


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: 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)

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