10 float axisValue = 0.0f;
14 axisValue = position.
X;
17 axisValue = position.
Y;
20 axisValue = position.
Z;
Defines a material that maps depth along a specified axis to RGB values.
GradientMaterial< 4 > gNoiseMat
Gradient material for depth mapping.
float zOffset
Z-axis offset for depth calculation.
Axis axis
Axis along which depth is calculated.
float depth
Depth scaling factor.
RGBColor GetRGB(const Vector3D &position, const Vector3D &normal, const Vector3D &uvw) override
Calculates the RGB color at a given position based on depth.
DepthMaterial(Axis axis, float depth, float zOffset)
Constructs a DepthMaterial instance.
Axis
Specifies the axis along which depth is calculated.
@ Y
Depth along the Y-axis.
@ X
Depth along the X-axis.
@ Z
Depth along the Z-axis.
RGBColor GetRGB(const Vector3D &position, const Vector3D &normal, const Vector3D &uvw) override
Gets the RGB color for a given position in the gradient.
static T Map(T value, T inLow, T inMax, T outMin, T outMax)
Maps a value from one range to another.
Represents an RGB color and provides methods for manipulation.
Represents a 3D vector (X, Y, Z) and provides methods for vector arithmetic.
float Z
The Z-component of the 3D vector.
float X
The X-component of the 3D vector.
float Y
The Y-component of the 3D vector.