10 normalL = (normalL + 1.0f) * 0.5f * 255.0f;
A material class that visualizes surface normals.
RGBColor GetRGB(const Vector3D &position, const Vector3D &normal, const Vector3D &uvw) override
Calculates the RGB color based on the surface normal vector.
NormalMaterial()
Constructs a NormalMaterial object.
Represents an RGB color and provides methods for manipulation.
Represents a 3D vector (X, Y, Z) and provides methods for vector arithmetic.
Vector3D UnitSphere() const
Normalizes this vector such that its magnitude is 1 (if non-zero).