diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-11-19 14:30:41 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-11-19 14:30:41 -0500 |
commit | 6137aed0179476eaa626660885f01ea3f04f988a (patch) | |
tree | e23b07cac6c9b8df58d9700e8a2fa2c719cf965b /dimension/realize.c | |
parent | 30cb9cb572cf8fa942faff7384580e5e2a06a7b3 (diff) | |
download | dimension-6137aed0179476eaa626660885f01ea3f04f988a.tar.xz |
Support global ambient_light.
Diffstat (limited to 'dimension/realize.c')
-rw-r--r-- | dimension/realize.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dimension/realize.c b/dimension/realize.c index 15d4104..d4b45cb 100644 --- a/dimension/realize.c +++ b/dimension/realize.c @@ -239,6 +239,13 @@ dmnsn_realize_global_settings(dmnsn_astnode astnode, dmnsn_scene *scene) dmnsn_astnode child; switch (item->type) { + case DMNSN_AST_AMBIENT: + dmnsn_array_get(item->children, 0, &child); + scene->ambient = dmnsn_realize_color(child); + scene->ambient.filter = 0.0; + scene->ambient.trans = 0.0; + break; + case DMNSN_AST_MAX_TRACE_LEVEL: dmnsn_array_get(item->children, 0, &child); scene->reclimit = dmnsn_realize_integer(child); |