LightWrap++
AC++wrapperfortheLightWave3DSDK
lwpp::ShadingEvaluator Class Reference

A base clasee for shaders that evaluate depending on light samples. More...

#include <nodes.h>

+ Collaboration diagram for lwpp::ShadingEvaluator:

List of all members.

Public Member Functions

lwpp::Vector3d GetShading () const
virtual int operator() (LWItemID light, const LWDVector lightDir, const LWDVector lightColour)=0
void setValue (lwpp::NodeHandler *node, NodeValue value)

Protected Attributes

lwpp::Vector3d colour

Detailed Description

A base clasee for shaders that evaluate depending on light samples.


Member Function Documentation

lwpp::Vector3d lwpp::ShadingEvaluator::GetShading ( ) const
inline
virtual int lwpp::ShadingEvaluator::operator() ( LWItemID  light,
const LWDVector  lightDir,
const LWDVector  lightColour 
)
pure virtual

Perform shading here This function is called once for every sample for the current light I suppose the return value is 1 if the spot is lit, 0 otherwise

void lwpp::ShadingEvaluator::setValue ( lwpp::NodeHandler node,
NodeValue  value 
)

Member Data Documentation

lwpp::Vector3d lwpp::ShadingEvaluator::colour
protected

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