A dynamic horizontal rainbow gradient material.
void SetPositionOffset(Vector2D positionOffset)
Sets the position offset for the gradient.
void SetRotationAngle(float rotationAngle)
Sets the rotation angle for the gradient.
RGBColor GetRGB(const Vector3D &position, const Vector3D &normal, const Vector3D &uvw) override
Gets the RGB color for a given position in the gradient.
void SetGradientPeriod(float gradientPeriod)
Sets the gradient's period of repetition.
GradientMaterial< 6 > gNoiseMat
Gradient material for the rainbow spectrum.
Material * GetMaterial()
Retrieves the associated material.
RGBColor GetRGB(const Vector3D &position, const Vector3D &normal, const Vector3D &uvw) override
Computes the color at a given position in the gradient.
void Update(float ratio)
Updates the gradient animation based on the provided time ratio.
float positionOffset
Position offset for animating the gradient.
Abstract base class for rendering materials.
Represents an RGB color and provides methods for manipulation.
Represents a 2D vector (X, Y) and provides methods for vector arithmetic.
Represents a 3D vector (X, Y, Z) and provides methods for vector arithmetic.