From dbd08fb54620ffdd2f52dd64b7a01ce0d1a02974 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Sat, 22 Jun 2019 00:02:57 +0200 Subject: [PATCH] Fix level demo bugs --- programs/level.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/programs/level.c b/programs/level.c index af3cc91..cf61bf7 100644 --- a/programs/level.c +++ b/programs/level.c @@ -12,7 +12,7 @@ #define S3L_FLAT 0 #define S3L_STRICT_NEAR_CULLING 0 -#define S3L_PERSPECTIVE_CORRECTION 1 +#define S3L_PERSPECTIVE_CORRECTION 2 #define S3L_SORT 0 #define S3L_Z_BUFFER 1 @@ -176,6 +176,18 @@ int main() scene.models[1] = levelFloorModel; scene.models[2] = levelCeilingModel; + S3L_Unit scale = S3L_FRACTIONS_PER_UNIT / 3; + + S3L_Vec4 s; + + s.x = scale; + s.y = scale; + s.z = scale; + + scene.models[0].transform.scale = s; + scene.models[1].transform.scale = s; + scene.models[2].transform.scale = s; + S3L_initTransoform3D(&modelTransform); S3L_initDrawConfig(&conf);