summaryrefslogtreecommitdiffstats
path: root/dimension/realize.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-11-19 14:30:41 -0500
committerTavian Barnes <tavianator@gmail.com>2010-11-19 14:30:41 -0500
commit6137aed0179476eaa626660885f01ea3f04f988a (patch)
treee23b07cac6c9b8df58d9700e8a2fa2c719cf965b /dimension/realize.c
parent30cb9cb572cf8fa942faff7384580e5e2a06a7b3 (diff)
downloaddimension-6137aed0179476eaa626660885f01ea3f04f988a.tar.xz
Support global ambient_light.
Diffstat (limited to 'dimension/realize.c')
-rw-r--r--dimension/realize.c7
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);