Workspace 6.21.5
|
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.
Inputs: | |||
---|---|---|---|
Surface representation | CSIRO::Rendering::SurfaceRepresentation | Whether the surface should be displayed as a solid surface, wireframe, or other representation. | |
Front color | QColor | The color to use for front-facing pixels. | |
Back color | QColor | The color to use for back-facing pixels. | |
Mode | CSIRO::Rendering::NormalShader::Mode | How to shade the mesh using the normal state information. | |
Reference vector | CSIRO::Mesh::Vector3d | If in 'Reference vector' mode, determines the comparison vector for normals. | |
Outputs: | |||
Shader | CSIRO::Rendering::NormalShader |