Sunlight
EXTERNPROTO Sunlight [ field SFBool autoClock field SFBool live field SFBool useDay field SFTime duration field SFInt32 hour field SFInt32 minute field SFInt32 second exposedField MFNode children ] "SunlightPROTO.wrl"
Sunlight changes the colors of a Background node and a directional light illuminating its children according to time of day. |
autoClock |
SFBool |
TRUE |
when TRUE, the rendering computer's internal clock is used to set time of day, and the hour, minute, and second fields are ignored |
live |
SFBool |
TRUE |
when TRUE, the colors of the sky and directional light, as well as the directional light's direction change over time. when FALSE, time is considered frozen, and the lighting / coloring will not change from their initial setting |
useDay |
SFBool |
TRUE |
when TRUE, the duration field is ignored, and color changes occur in real-time (24 hours to complete a cycle) |
duration |
SFTime |
5 |
length of day / night cycle (in seconds). duration is ignored when useDay is TRUE |
hour |
SFInt32 |
12 |
hour of day, ignored if autoClock is TRUE |
minute |
SFInt32 |
0 |
minute of hour, ignored if autoClock is TRUE |
second |
SFInt32 |
0 |
second of minute, ignored if autoClock is TRUE |
children |
MFNode |
[] |
any children of the Sunlight node are lit by a directional light whose color and direction correspond to the time of day. |