vtSkyDome Class Reference
[Terrain]
List of all members.
|
Public Member Functions |
| void | Create (const char *starfile, int depth, float radius, const char *sun_texture=NULL, const char *moon_texture=NULL) |
| void | SetTime (const vtTime &time) |
Detailed Description
A SkyDome is a hemisphere which is colored according to the time of day: shades of blue, plus yellow-orange at dawn and dusk. 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 Sun (as a texture billboard). The Sun is moved and sky is colored appropriately for the time of day (set with SetTime). It also supplies a real Light (
vtLight) which approximates the actual color, direction and intensity of sunlight.
Member Function Documentation
| void vtSkyDome::Create |
( |
const char * |
starfile, |
|
|
int |
depth, |
|
|
float |
radius, |
|
|
const char * |
sun_texture = NULL, |
|
|
const char * |
moon_texture = NULL | |
|
) |
| | |
Creates a complete SkyDome, which includes a StarDome.
| void vtSkyDome::SetTime |
( |
const vtTime & |
time |
) |
|
Sets the time of day (or night).
- Parameters:
-
| time | Time in seconds since midnight. |