1
0
Fork 0
mirror of https://git.coom.tech/drummyfish/small3dlib.git synced 2024-11-23 20:59:58 +01:00

Fix level demo bugs

This commit is contained in:
Miloslav Číž 2019-06-22 00:02:57 +02:00
parent 6f9e90dd60
commit dbd08fb546

View file

@ -12,7 +12,7 @@
#define S3L_FLAT 0 #define S3L_FLAT 0
#define S3L_STRICT_NEAR_CULLING 0 #define S3L_STRICT_NEAR_CULLING 0
#define S3L_PERSPECTIVE_CORRECTION 1 #define S3L_PERSPECTIVE_CORRECTION 2
#define S3L_SORT 0 #define S3L_SORT 0
#define S3L_Z_BUFFER 1 #define S3L_Z_BUFFER 1
@ -176,6 +176,18 @@ int main()
scene.models[1] = levelFloorModel; scene.models[1] = levelFloorModel;
scene.models[2] = levelCeilingModel; 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_initTransoform3D(&modelTransform);
S3L_initDrawConfig(&conf); S3L_initDrawConfig(&conf);