OpenVDB
2.3.0
|
Color shader that treats the surface normal (x, y, z) as an RGB color. More...
#include <RayTracer.h>
Inherits BaseShader.
Public Types | |
typedef math::Ray< Real > | RayT |
Public Member Functions | |
NormalShader (const Film::RGBA &c=Film::RGBA(1.0f)) | |
virtual | ~NormalShader () |
virtual Film::RGBA | operator() (const Vec3R &, const Vec3R &normal, const Vec3R &) const |
Defines the interface of the virtual function that returns a RGB color. More... | |
virtual BaseShader * | copy () const |
Color shader that treats the surface normal (x, y, z) as an RGB color.
|
inline |
|
inlinevirtual |
|
inlinevirtual |
Implements BaseShader.
|
inlinevirtual |
Defines the interface of the virtual function that returns a RGB color.
xyz | World position of the intersection point. |
nml | Normal in world space at the intersection point. |
dir | Direction of the ray in world space. |
Implements BaseShader.