Workspace 6.21.5
NormalShaderBuilder

Creates a NormalShader; a shader that varies the color of a surface based on the normal vectors at each vertex. The shader shows one color for front-facing fragments, and another color for back-facing elements. This shader can be very useful when debugging mesh geometry.

  • Default label: "NormalShader Builder"
  • Member of plug-in: Rendering
  • Catalogue path: Scene/Shaders
Inputs:
Surface representationCSIRO::Rendering::SurfaceRepresentationWhether the surface should be displayed as a solid surface, wireframe, or other representation.
Front colorQColorThe color to use for front-facing pixels.
Back colorQColorThe color to use for back-facing pixels.
ModeCSIRO::Rendering::NormalShader::ModeHow to shade the mesh using the normal state information.
Reference vectorCSIRO::Mesh::Vector3d

If in 'Reference vector' mode, determines the comparison vector for normals.

Outputs:
ShaderCSIRO::Rendering::NormalShader