summaryrefslogtreecommitdiffstats
path: root/dimension/realize.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-04-25 22:28:15 -0600
committerTavian Barnes <tavianator@gmail.com>2011-04-25 22:28:15 -0600
commit3c37bf39733bb53267b046c5f0aafbffeb738990 (patch)
tree633943f2dcf26d9fec2c7f93cb8462f68982a35a /dimension/realize.c
parent13e11b2fafe60cad7d04d80c602adc12d6080036 (diff)
downloaddimension-3c37bf39733bb53267b046c5f0aafbffeb738990.tar.xz
Implement adaptive depth control.
Diffstat (limited to 'dimension/realize.c')
-rw-r--r--dimension/realize.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/dimension/realize.c b/dimension/realize.c
index 2603ba1..c9a507d 100644
--- a/dimension/realize.c
+++ b/dimension/realize.c
@@ -232,6 +232,11 @@ dmnsn_realize_global_settings(dmnsn_astnode astnode, dmnsn_scene *scene)
dmnsn_astnode child;
switch (item->type) {
+ case DMNSN_AST_ADC_BAILOUT:
+ dmnsn_array_get(item->children, 0, &child);
+ scene->adc_bailout = dmnsn_realize_float(child);
+ break;
+
case DMNSN_AST_AMBIENT:
dmnsn_array_get(item->children, 0, &child);
scene->ambient = dmnsn_realize_color(child);