14#include "../Material.h"
15#include "../../../Utils/Math/Mathematics.h"
38 RGBColor spectrum[4] = {
RGBColor(0, 255, 0),
RGBColor(255, 0, 0),
RGBColor(0, 255, 0),
RGBColor(0, 0, 255) };
Defines a material for creating gradient color effects in 3D rendering.
Maps depth along a specified axis to an RGB color using a gradient.
RGBColor spectrum[4]
Gradient spectrum for depth mapping.
GradientMaterial< 4 > gNoiseMat
Gradient material for depth mapping.
float zOffset
Z-axis offset for depth calculation.
Axis axis
Axis along which depth is calculated.
float depth
Depth scaling factor.
RGBColor GetRGB(const Vector3D &position, const Vector3D &normal, const Vector3D &uvw) override
Calculates the RGB color at a given position based on depth.
Axis
Specifies the axis along which depth is calculated.
@ Y
Depth along the Y-axis.
@ X
Depth along the X-axis.
@ Z
Depth along the Z-axis.
Creates a customizable gradient material for rendering.
Abstract base class for rendering materials.
Represents an RGB color and provides methods for manipulation.
Represents a 3D vector (X, Y, Z) and provides methods for vector arithmetic.