14#include "../AnimatedMaterial.h"
15#include "../../../Utils/Signals/FunctionGenerator.h"
16#include "../Static/SpiralMaterial.h"
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)};
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.
A dynamic material creating a colorful rainbow spiral animation.
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.