summaryrefslogtreecommitdiffstats
path: root/dimension/common.rules
diff options
context:
space:
mode:
Diffstat (limited to 'dimension/common.rules')
-rw-r--r--dimension/common.rules13
1 files changed, 13 insertions, 0 deletions
diff --git a/dimension/common.rules b/dimension/common.rules
index c5f9eea..7a6dba1 100644
--- a/dimension/common.rules
+++ b/dimension/common.rules
@@ -111,6 +111,7 @@ CAMERA_MODIFIER: "angle" FLOAT {
/* Objects */
OBJECT: FINITE_SOLID_OBJECT
+ | INFINITE_SOLID_OBJECT
| CSG_OBJECT
| LIGHT_SOURCE
| "object" "{"
@@ -194,6 +195,18 @@ SPHERE: "sphere" "{"
}
;
+INFINITE_SOLID_OBJECT: PLANE
+;
+
+PLANE: "plane" "{"
+ VECTOR "," FLOAT
+ OBJECT_MODIFIERS
+ "}"
+ {
+ $$ = dmnsn_new_astnode3(DMNSN_AST_PLANE, @$, $3, $5, $6);
+ }
+;
+
CSG_OBJECT: UNION
| INTERSECTION
| DIFFERENCE