diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-04-25 22:28:15 -0600 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-04-25 22:28:15 -0600 |
commit | 3c37bf39733bb53267b046c5f0aafbffeb738990 (patch) | |
tree | 633943f2dcf26d9fec2c7f93cb8462f68982a35a /dimension/realize.c | |
parent | 13e11b2fafe60cad7d04d80c602adc12d6080036 (diff) | |
download | dimension-3c37bf39733bb53267b046c5f0aafbffeb738990.tar.xz |
Implement adaptive depth control.
Diffstat (limited to 'dimension/realize.c')
-rw-r--r-- | dimension/realize.c | 5 |
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); |