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

CustomShader Op

Ops.Gl.Shader.CustomShader


CustomShader
Namespace: Ops.Gl.Shader

Op author: pandur

There is a newer version of this op!


This version will not receive any updates. It is recommended to use a newer version.

Current version: Ops.Gl.Shader.CustomShader_v2

write your own shader


summary (oneliner)

to render a shader directly to a texture use Ops.Gl.Shader.Shader2Texture



doc

issues

example patch id

youtube id

caniuse query

collections

related ops

Inputs

render (Trigger)

Source Code

fragment (Number)

vertex (Number)

Outputs

trigger (Trigger)

Shader (Object)

Caught a mistake or want to contribute to the documentation?

Edit Documentationcancel save

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


Youtube Video Tutorial

Patches using CustomShader

Changelog


Now parses uniforms from source code, uniforms don't disappear when not in use
2019-05-16 - pandur