5 float sShift = sweep * 0.004f + 0.005f;
A dynamic material generating a rainbow effect using simplex noise.
float Update()
Updates and calculates the next value of the waveform.
void HueShift(float hueDeg)
Shifts the hue of the gradient by a specified degree.
void SetGradientPeriod(float gradientPeriod)
Sets the gradient's period of repetition.
Abstract base class for rendering materials.
Represents an RGB color and provides methods for manipulation.
GradientMaterial< 4 > gNoiseMat
Gradient material for simplex noise.
Material * GetMaterial()
Retrieves the associated material.
float simplexNoiseDepth
Depth parameter for simplex noise.
RGBColor GetRGB(const Vector3D &position, const Vector3D &normal, const Vector3D &uvw) override
Computes the color at a given position in the material.
void Update(float ratio)
Updates the material animation based on the time ratio.
FunctionGenerator fGenMatGradient
Function to animate gradient properties.
SimplexNoise< 4 > sNoise
Simplex noise generator.
void SetScale(Vector3D noiseScale)
Sets the scale for noise generation.
void SetZPosition(float zPosition)
Sets the Z-position for 3D noise generation.
RGBColor GetRGB(const Vector3D &position, const Vector3D &normal, const Vector3D &uvw) override
Retrieves the color for a given position based on the noise value.
Represents a 3D vector (X, Y, Z) and provides methods for vector arithmetic.