vtlib library
|
Public Member Functions | |
bool | TestVisible (float fDistance, bool bLoad) |
Public Member Functions inherited from vtLOD | |
void | SetCenter (const FPoint3 ¢er) |
Set the location of the LOD's center. Distance from this center determines detail. | |
void | GetCenter (FPoint3 ¢er) |
Get the location of the LOD's center. | |
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 vtPagedStructureLOD node controls the visibility of its child nodes.
You set a single distance value (range) for all the children, which is the distance from the camera at which all nodes will be rendered.
bool vtPagedStructureLOD::TestVisible | ( | float | fDistance, |
bool | bLoad | ||
) |
fDistance | The distance in meters to check against. |
bLoad | If true, and this cell is within the distance, and it isn't loaded, then load it. |