feat: support alternative vcm models syntax

This commit is contained in:
MihailRis 2025-06-01 23:08:59 +03:00
parent 8f342fe429
commit 4333d9ab06
10 changed files with 155 additions and 28 deletions

4
res/models/stairs.vcm Normal file
View file

@ -0,0 +1,4 @@
@box from (0,0,0) to (1,0.5,1) delete (top,south)
@box from (0,0.5,0) to (1,1,0.5) delete (bottom,south)
@rect from (0,0.5,0.5) right (1,0,0) up (0,0,0.5) texture "$2"
@rect from (0,0,0) right (1,0,0) up (0,1,0) texture "$1"

View file

@ -1,6 +0,0 @@
<model>
<box from="0,0,0" to="1,0.5,1" delete="top,south"/>
<box from="0,0.5,0" to="1,1,0.5" delete="bottom,south"/>
<rect from="0,0.5,0.5" right="1,0,0" up="0,0,0.5" texture="$2"/>
<rect from="0,0,0" right="1,0,0" up="0,1,0" texture="$1"/>
</model>