A node based interface to support new Viewport Rendering features.
The new interface for 3ds max 10 provides access to the new viewport rendering features. This includes the ability for any number of lights to illuminate the scene. A light can now cast shadows in the viewport and provide illumination which are properties stored at the node level. The IViewportShadingMgr interacts with this interface to give the user some control over these light node properties. These properties only have an effect if Viewport Shading is turned on. The developer can access this interface directly from the node.
INodeShadingProperties * shadeProp = static_cast<INodeShadingProperties*>(node->GetInterface(NODESHADINGPROPERTIES_INTERFACE));
#include <INodeShadingProperties.h>
Public Member Functions |
|
virtual bool | GetViewportShadowCasting ()=0 |
Retrieves the shadow casting flag. |
|
virtual void | SetViewportShadowCasting (bool bSet)=0 |
Set the shading casting flag. |
|
virtual bool | GetViewportIlluminate ()=0 |
Retrieves the illumination flag. |
|
virtual void | SetViewportIlluminate (bool bSet)=0 |
Set the illuminate flag. |
|
virtual bool | GetLockedViewportIllumination ()=0 |
Retrieves the locked state of the light.
|
|
virtual void | SetLockedViewportIllumination (bool bSet)=0 |
Sets the locked flag for the light node.
|
virtual bool GetViewportShadowCasting | ( | ) | [pure virtual] |
Retrieves the shadow casting flag.
virtual void SetViewportShadowCasting | ( | bool | bSet | ) | [pure virtual] |
Set the shading casting flag.
bSet | Pass TRUE to turn on shadow casting, FALSE to turn it off. |
virtual bool GetViewportIlluminate | ( | ) | [pure virtual] |
Retrieves the illumination flag.
virtual void SetViewportIlluminate | ( | bool | bSet | ) | [pure virtual] |
Set the illuminate flag.
bSet | Pass TRUE to turn on illumination, FALSE to turn it off. |
virtual bool GetLockedViewportIllumination | ( | ) | [pure virtual] |
Retrieves the locked state of the light.
A locked light means that it is not affected by changes of other properties. For example if the user locks the sun light, it will not be affected by a group "turn of shadows".
virtual void SetLockedViewportIllumination | ( | bool | bSet | ) | [pure virtual] |
Sets the locked flag for the light node.
A locked light means that it is not affected by changes of other properties. For example if the user locks the sun light, it will not be affected by a group "turn of shadows".
bSet | TRUE to turn it on, FALSE to turn it off |