33 lines
972 B
Plaintext
33 lines
972 B
Plaintext
version 1 .
|
|
|
|
Sprite = <sprite @name string @shape Shape> .
|
|
|
|
Shape = Sphere / Box / Light / Ground / Scale / Move / Rotate / @many [Shape ...] / Texture / Color / Name / Floor .
|
|
|
|
Sphere = <sphere> .
|
|
Box = <box> .
|
|
Light = <hemispheric-light @v Vector3> .
|
|
Ground = <ground @size Vector2> .
|
|
|
|
Vector2 = <v @x double @y double> .
|
|
Vector3 = <v @x double @y double @z double> .
|
|
Quaternion = <q @a double @b double @c double @d double> .
|
|
|
|
Scale = <scale @v Vector3 @shape Shape> .
|
|
Move = <move @v Vector3 @shape Shape> .
|
|
Rotate = @euler <rotate @v Vector3 @shape Shape> / @quaternion <rotate @q Quaternion @shape Shape> .
|
|
|
|
Texture =
|
|
/ @simple <texture @path string @shape Shape>
|
|
/ @uv <texture @path string @scale Vector2 @offset Vector2 @shape Shape>
|
|
.
|
|
|
|
Color =
|
|
/ @opaque <color @r double @g double @b double @shape Shape>
|
|
/ @transparent <color @r double @g double @b double @alpha double @shape Shape>
|
|
.
|
|
|
|
Name = <name @base string @shape Shape> .
|
|
|
|
Floor = <floor @shape Shape> .
|