OpenVDB  2.3.0
Public Types | Public Member Functions | List of all members
BaseShader Class Referenceabstract

Abstract base class for the shaders. More...

#include <RayTracer.h>

Inherited by DiffuseShader, MatteShader, NormalShader, and PositionShader.

Public Types

typedef math::Ray< RealRayT
 

Public Member Functions

 BaseShader ()
 
virtual ~BaseShader ()
 
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 BaseShadercopy () const =0
 

Detailed Description

Abstract base class for the shaders.

Member Typedef Documentation

typedef math::Ray<Real> RayT

Constructor & Destructor Documentation

BaseShader ( )
inline
virtual ~BaseShader ( )
inlinevirtual

Member Function Documentation

virtual BaseShader* copy ( ) const
pure virtual
virtual Film::RGBA operator() ( const Vec3R xyz,
const Vec3R nml,
const Vec3R dir 
) const
pure virtual

Defines the interface of the virtual function that returns a RGB color.

Parameters
xyzWorld position of the intersection point.
nmlNormal in world space at the intersection point.
dirDirection of the ray in world space.

Implemented in DiffuseShader, PositionShader, NormalShader, and MatteShader.


The documentation for this class was generated from the following file: