summaryrefslogtreecommitdiffstats
path: root/dimension/realize.c
diff options
context:
space:
mode:
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);