![]() |
ProtoTracer
1.0
Real-time 3D rendering and animation engine
|
A material that visualizes surface normals as RGB colors. More...
#include <NormalMaterial.h>
Public Member Functions | |
NormalMaterial () | |
Constructs a NormalMaterial object. | |
RGBColor | GetRGB (const Vector3D &position, const Vector3D &normal, const Vector3D &uvw) override |
Calculates the RGB color based on the surface normal vector. | |
![]() | |
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... | |
A material that visualizes surface normals as RGB colors.
This class maps the components of a normal vector (x, y, z) directly to the RGB color channels, providing an intuitive representation of surface orientations.
Definition at line 25 of file NormalMaterial.h.
NormalMaterial | ( | ) |
Constructs a NormalMaterial
object.
Definition at line 3 of file NormalMaterial.cpp.
|
overridevirtual |
Calculates the RGB color based on the surface normal vector.
position | 3D position in the scene (not used for this material). |
normal | Normal vector at the position, used for RGB mapping. |
uvw | Texture coordinates at the position (not used for this material). |
Implements Material.
Definition at line 5 of file NormalMaterial.cpp.
References Vector3D::UnitSphere().