Create GLSL shader
create_glsl_shaderGenerate a GLSL shader TOP by supplying fragment shader code; optionally add vertex shader, bind uniforms, and set output resolution.
Instructions
Create a GLSL TOP with a fragment shader (and optional vertex shader) supplied via Text DATs, with optional uniform binding and output resolution.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parent_path | Yes | Parent COMP to create the GLSL TOP inside. | |
| name | No | Name for the GLSL TOP (default 'glsl1'). | |
| fragment_shader | Yes | GLSL fragment (pixel) shader source. | |
| vertex_shader | No | Optional GLSL vertex shader source. | |
| uniforms | No | Optional uniform declarations to best-effort bind on the GLSL TOP. | |
| resolution | No | input |