summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-12-16 15:57:03 -0500
committerTavian Barnes <tavianator@gmail.com>2009-12-16 15:57:03 -0500
commit78b2f11896f6bcda86a530f9d44278483872b43b (patch)
tree5472b549446f91f47c3eca2f2810cdb8a9ab8572
parent8c28c51a13c2900c17d361e8d1f49cb0ea7c2977 (diff)
downloaddimension-78b2f11896f6bcda86a530f9d44278483872b43b.tar.xz
Support the 'direction' camera item.
-rw-r--r--dimension/realize.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dimension/realize.c b/dimension/realize.c
index 11e37b9..d030a76 100644
--- a/dimension/realize.c
+++ b/dimension/realize.c
@@ -188,6 +188,10 @@ dmnsn_realize_camera(dmnsn_astnode astnode)
dmnsn_array_get(item.children, 0, &item);
sky = dmnsn_realize_vector(item);
break;
+ case DMNSN_AST_DIRECTION:
+ dmnsn_array_get(item.children, 0, &item);
+ direction = dmnsn_realize_vector(item);
+ break;
/* Camera modifiers */