#include <DefaultColorizer.h>
Inherits Colorizer.
Public Member Functions | |
virtual Color | calculateColor (int fromSideFirstIndex, int fromSideSecondIndex, double lambda, int toSideFirstIndex, int toSideSecondIndex, double rho, double tau) |
![]() | |
virtual void | setProjection (const Matrix< 4, 4 > &projection) |
virtual void | setTriangle (Triangle *triangle) |
Additional Inherited Members | |
![]() | |
Matrix< 4, 4 > | projection |
Triangle * | triangle |
A DefaultColorizer is the simplest kind of Colorizer. It simply uses the frontColor of the Triangle.
|
virtual |
Calculate the Color of a pixel.
fromSideFirstIndex | The first index of the from side |
fromSideSecondIndex | The second index of the from side |
lambda | The weight for the from side |
toSideFirstIndex | The first index of the to side |
toSideSecondIndex | The second index of the to side |
rho | The weight for the to side |
tau | The side-to-side weight |
Implements Colorizer.