Helper class to create a rotation matrix with resepect to the current time.
More...
Helper class to create a rotation matrix with resepect to the current time.
def lib-server.SceneManager.DayAnimationUpdate.lerp_color |
( |
|
self, |
|
|
|
START_COLOR, |
|
|
|
TARGET_COLOR, |
|
|
|
RATIO |
|
) |
| |
Linearly interpolates between two colors according to a given ratio.
- Parameters
-
START_COLOR | The starting value for a ratio of 0. |
TARGET_COLOR | The final value for a ratio of 1. |
RATIO | A value between 0 and 1 that determines the interpolated result. |
def lib-server.SceneManager.DayAnimationUpdate.update |
( |
|
self | ) |
|
Called whenever TimeIn changes.
lib-server.SceneManager.DayAnimationUpdate.day_time = 5 |
|
static |
The length of one day in seconds.
The color of the sun at sunset.
lib-server.SceneManager.DayAnimationUpdate.morning_sun_color = avango.gua.Color(0.9, 0.65, 0.65) |
|
static |
The color of the sun at sunrise.
lib-server.SceneManager.DayAnimationUpdate.noon_sun_color = avango.gua.Color(1.0, 0.8, 0.8) |
|
static |
The color of the sun at noon.
lib-server.SceneManager.DayAnimationUpdate.sf_sun_color = avango.gua.SFColor() |
|
static |
lib-server.SceneManager.DayAnimationUpdate.sf_sun_mat = avango.gua.SFMatrix4() |
|
static |
Field containing the calculated rotation matrix for the sun.
lib-server.SceneManager.DayAnimationUpdate.TimeIn = avango.SFFloat() |
|
static |
Field containting the current time in seconds.
The documentation for this class was generated from the following file: