ViroShaderModifiers
ViroShaderModifiers is a collection of modifiers grouped by the specific stage of the rendering pipeline where they should be injected. Each property can be either a raw GLSL string (which defaults to the body) or a ViroShaderModifier object for more control.
| Property | Types | Description | Required |
|---|---|---|---|
| geometry | string | ViroShaderModifier | Modifies vertex data before it is transformed by the model-view-matrix. | optional |
| vertex | string | ViroShaderModifier | Modifies the vertex position after it has been transformed into post-projection (NDC) space. | optional |
| surface | string | ViroShaderModifier | Modifies surface properties (diffuse color, normals, roughness, etc.) before lighting is calculated. | optional |
| fragment | string | ViroShaderModifier | Modifies the final pixel color after all lighting calculations are complete. | optional |
| lightingModel | string | ViroShaderModifier | Allows you to override or extend how light interacts with the surface. | optional |
Updated 5 days ago