Workspace 6.21.5
CreateColorStateShader

Creates a ColorStateShader; a shader that uses RGBA state data from a MeshModel to set the color of each vertex.

  • Default label: "ColorStateShader Builder"
  • Member of plug-in: Rendering
  • Catalogue path: Scene/Shaders
Inputs:
BGR modeboolEnable to use BGR order instead of default RGB.
Surface representationCSIRO::Rendering::SurfaceRepresentation

State nameQString

Enable lightingboolIf enabled, the shader will shade the surface using the lambertian lighting model.
Apply transparencybool

If enabled, nodes that have alpha components < 255 will be rendered with the appropriate blending method to make them appear transparent..

Outputs:
ShaderCSIRO::Rendering::ColorStateShader