ViroShaderModifier
ViroShaderModifier represents an individual code injection "snippet."
| Property | Types | Description | Required |
|---|---|---|---|
| body | string | The actual GLSL-style code to be executed. Inside this string, you can access built-in Viro structures (like _geometry, _surface, or _vertex) depending on which entry point is used. | optional |
| uniforms | string | A string containing the declarations for any custom uniforms your body code requires (e.g., uniform float myCustomFactor;). | optional |
Updated 5 days ago