28 RGBColor rainbowSpectrum[6] = {
RGBColor(255, 0, 0),
RGBColor(255, 255, 0),
RGBColor(0, 255, 0),
RGBColor(0, 255, 255),
RGBColor(0, 0, 255),
RGBColor(255, 0, 255)};
Declares the AnimatedMaterial class for time-based material updates.
Provides a generator for common mathematical wave functions.
A material class for generating spiral effects.
Base class for dynamically updating materials.
A class to generate various waveform functions with customizable parameters.
Abstract base class for rendering materials.
Represents an RGB color and provides methods for manipulation.
RainbowSpiral()
Default constructor for RainbowSpiral.
RGBColor rainbowSpectrum[6]
Predefined rainbow color spectrum.
Material * GetMaterial()
Retrieves the associated spiral material.
RGBColor GetRGB(const Vector3D &position, const Vector3D &normal, const Vector3D &uvw) override
Computes the color at a given position in the material.
SpiralMaterial spiralMaterial
Spiral material configured with rainbow spectrum and scale parameters.
FunctionGenerator fGenMatBend
Function generator for animating spiral bending.
void Update(float ratio)
Updates the material animation based on the time ratio.
Generates a spiral pattern with configurable properties.
Represents a 3D vector (X, Y, Z) and provides methods for vector arithmetic.