This class is passed into the method ObjLightDesc::Update().
The methods of this class are implemented by the 3ds Max scanline renderer. Developer creating other renderer plug-ins may choose to implement the methods of this class if they wish to use the same architecture. Developers who wish to take advantage of the 3ds Max volumetric light effects should implement the methods of this class. The volumetric lights are set up to work with this mechanism.
#include <render.h>
Public Member Functions |
|
virtual | ~RendContext () |
Destructor. |
|
virtual int | Progress (int done, int total) const |
This method is used to update the progress
bar and check the keyboard and mouse for user cancellation.
|
|
virtual Color | GlobalLightLevel () const =0 |
This is a multiplier that scales the
brightness of all scene lights. |
virtual ~RendContext | ( | ) | [inline, virtual] |
Destructor.
{}
virtual int Progress | ( | int | done, |
int | total | ||
) | const [inline, virtual] |
This method is used to update the progress bar and check the keyboard and mouse for user cancellation.
A plug-in renderer should override this method by calling the RendProgressCallback::Progress() method on the RendProgressCallback passed in to the Renderer::Render() method.
done | This is the number completed so far. |
total | This is the total number of things to complete. |
{ return 1; }
virtual Color GlobalLightLevel | ( | ) | const [pure virtual] |
This is a multiplier that scales the brightness of all scene lights.
it doesn't affect the ambient light level. It is included in RendContext so the lights can use it to multiply times the light's color.