vtlib library
Public Member Functions | List of all members
vtStarDome Class Reference
Inheritance diagram for vtStarDome:
Inheritance graph
[legend]

Public Member Functions

void SetTime (const vtTime &time)
 
- 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.
 

Detailed Description

A StarDome is a sphere of stars, based on real star data, implemented as Points. The intended use is to make it large and far away from the camera, so that it is always behind all the terrain and objects in the world. It also contains an image of the Moon (as a texture billboard). The Moon and Stars are moved appropriately for the time (set with SetTime).

Member Function Documentation

void vtStarDome::SetTime ( const vtTime time)

Sets the time of day (or night).

Parameters
timeTime in seconds since midnight.