15#include "../AnimatedMaterial.h"
16#include "../../../Utils/Signals/FunctionGenerator.h"
17#include "../Static/GradientMaterial.h"
18#include "../Static/SimplexNoise.h"
19#include "../CombineMaterial.h"
20#include "../../../Assets/Textures/Static/ColorTest.h"
Base class for dynamically updating materials.
Combines multiple materials with specified blending methods and opacities.
void AddMaterial(Method method, Material *material, float opacity)
Adds a new material to the combination.
A class to generate various waveform functions with customizable parameters.
Creates a customizable gradient material for rendering.
void SetRotationAngle(float rotationAngle)
Sets the rotation angle for the gradient.
Abstract base class for rendering materials.
@ Lighten
Chooses the lighter color.
@ Base
The base material color.
@ Multiply
Multiplies colors.
Represents an RGB color and provides methods for manipulation.
A material class for rendering Simplex Noise.
Simulates a TV static effect with noise, scanlines, and color variations.
RGBColor noiseSpectrum[5]
Spectrum for simplex noise coloring.
CombineMaterial< 3 > combineScanline
Material combiner for layering effects.
GradientMaterial< 10 > scanlineGradient
Scanline gradient material.
RGBColor scanlineSpectrum[10]
Spectrum for scanline effects.
SimplexNoise< 5 > sNoise
Simplex noise generator for TV static.
TVStatic()
Constructor for TVStatic.
Material * GetMaterial()
Retrieves the combined material representing the TV static effect.
float simplexNoiseDepth
Depth value for simplex noise animation.
RGBColor GetRGB(const Vector3D &position, const Vector3D &normal, const Vector3D &uvw) override
Computes the color at a given position in the material.
FunctionGenerator colorWiggle1
Function for animating color wiggles.
FunctionGenerator colorWiggle2
Secondary function for color variation.
void Update(float ratio)
Updates the animation parameters for the TV static effect.
GradientMaterial< 5 > gNoiseMat
Gradient for simplex noise material.
FunctionGenerator fGenMatGradient
Function for gradient animation.
ColorTest colorTest
Color test overlay.
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.