OpenVDB
2.3.0
|
#include <RayTracer.h>
Inherits BaseShader.
Public Types | |
typedef math::Ray< Real > | RayT |
Public Member Functions | |
PositionShader (const math::BBox< Vec3R > &bbox, const Film::RGBA &c=Film::RGBA(1.0f)) | |
virtual | ~PositionShader () |
virtual Film::RGBA | operator() (const Vec3R &xyz, const Vec3R &, const Vec3R &) const |
Defines the interface of the virtual function that returns a RGB color. More... | |
virtual BaseShader * | copy () const |
Color shader that treats position (x, y, z) as an RGB color in a cube defined from an axis-aligned bounding box in world space.
|
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.