![]() |
ProtoTracer
1.0
Real-time 3D rendering and animation engine
|
Base class for dynamically updating materials. More...
#include <AnimatedMaterial.h>
Public Member Functions | |
virtual void | Update (float ratio)=0 |
Updates the material's state based on a ratio. | |
virtual Material * | GetMaterial ()=0 |
Retrieves the current material instance for rendering. | |
![]() | |
virtual RGBColor | GetRGB (const Vector3D &position, const Vector3D &normal, const Vector3D &uvw)=0 |
Pure virtual function to calculate color based on surface parameters. | |
virtual | ~Material ()=default |
Virtual destructor for proper cleanup in derived classes. | |
Additional Inherited Members | |
![]() | |
enum | Method { Base , Add , Subtract , Multiply , Divide , Darken , Lighten , Screen , Overlay , SoftLight , Replace , EfficientMask , Bypass } |
Defines blending methods for combining colors. More... | |
Base class for dynamically updating materials.
The AnimatedMaterial
class provides an interface for materials that require animation or time-based updates. Derived classes must implement the Update
and GetMaterial
methods.
Definition at line 24 of file AnimatedMaterial.h.
Retrieves the current material instance for rendering.
Material
instance. Implemented in FlowNoise, HorizontalRainbow, RainbowNoise, RainbowNoise2, RainbowSpiral, and TVStatic.
Updates the material's state based on a ratio.
This function is called to update the material's state over time.
Implemented in FlowNoise, HorizontalRainbow, RainbowNoise, RainbowNoise2, RainbowSpiral, and TVStatic.