vtlib library
|
Public Member Functions | |
void | SetDarkness (float bias) |
Set the darkness of the shadow, from 0 to 1. Only supported on newer 3D cards. | |
float | GetDarkness () |
Get the darkness, from 0 to 1. | |
void | SetShadowTextureResolution (const uint ShadowTextureResolution) |
A single texture is used for the shadow. It's resolution defaults to 1024. | |
void | SetRecalculateEveryFrame (const bool RecalculateEveryFrame) |
The shadow may be recalculated every frame, or for improved performance, only when desired. | |
Public Member Functions inherited from NodeExtension | |
void | SetEnabled (bool bOn) |
bool | GetEnabled () const |
void | SetCastShadow (bool b) |
Set this node to cast a shadow, if it is under a vtShadow node. Default is false. | |
bool | GetCastShadow () |
Get whether this node casts a shadow. | |
void | GetBoundSphere (FSphere &sphere, bool bGlobal=false) |
Get the Bounding Sphere of the node. | |
A Shadow node allows you to apply shadows within all its child nodes. Add it to your scene graph, and all descendents will receive a cast shadow. Only certain nodes, which are set with vtNode::SetCastShadow, will cast a shadow.