HDK
|
Abstract base class for the shaders. More...
#include <RayTracer.h>
Public Types | |
using | RayT = math::Ray< Real > |
Public Member Functions | |
BaseShader () | |
BaseShader (const BaseShader &)=default | |
virtual | ~BaseShader ()=default |
virtual Film::RGBA | operator() (const Vec3R &xyz, const Vec3R &nml, const Vec3R &dir) const =0 |
Defines the interface of the virtual function that returns a RGB color. More... | |
virtual BaseShader * | copy () const =0 |
Abstract base class for the shaders.
Definition at line 519 of file RayTracer.h.
Definition at line 522 of file RayTracer.h.
|
inline |
Definition at line 523 of file RayTracer.h.
|
default |
|
virtualdefault |
|
pure virtual |
Implemented in openvdb::OPENVDB_VERSION_NAME::tools::DiffuseShader< Film::RGBA, SamplerType >, openvdb::OPENVDB_VERSION_NAME::tools::DiffuseShader< GridT, SamplerType >, openvdb::OPENVDB_VERSION_NAME::tools::PositionShader< Film::RGBA, SamplerType >, openvdb::OPENVDB_VERSION_NAME::tools::PositionShader< GridT, SamplerType >, openvdb::OPENVDB_VERSION_NAME::tools::NormalShader< Film::RGBA, SamplerType >, openvdb::OPENVDB_VERSION_NAME::tools::NormalShader< GridT, SamplerType >, openvdb::OPENVDB_VERSION_NAME::tools::MatteShader< Film::RGBA, SamplerType >, and openvdb::OPENVDB_VERSION_NAME::tools::MatteShader< GridT, SamplerType >.
|
pure virtual |
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. |
Implemented in openvdb::OPENVDB_VERSION_NAME::tools::DiffuseShader< Film::RGBA, SamplerType >, openvdb::OPENVDB_VERSION_NAME::tools::DiffuseShader< GridT, SamplerType >, openvdb::OPENVDB_VERSION_NAME::tools::PositionShader< Film::RGBA, SamplerType >, openvdb::OPENVDB_VERSION_NAME::tools::PositionShader< GridT, SamplerType >, openvdb::OPENVDB_VERSION_NAME::tools::NormalShader< Film::RGBA, SamplerType >, openvdb::OPENVDB_VERSION_NAME::tools::NormalShader< GridT, SamplerType >, openvdb::OPENVDB_VERSION_NAME::tools::MatteShader< Film::RGBA, SamplerType >, and openvdb::OPENVDB_VERSION_NAME::tools::MatteShader< GridT, SamplerType >.