Increase renderer unit

This commit is contained in:
Miloslav Ciz 2025-02-19 20:08:25 +01:00
parent 30d44bc8d4
commit def8fa3c27
3 changed files with 13 additions and 4 deletions

View file

@ -44,6 +44,9 @@
=========== BUGS ================= =========== BUGS =================
- the pinch collision test seems to sometimes stop the car e.g. after falling
from bigger height or when running into ramp at high speed - FIX
=========== HANDLED ============== =========== HANDLED ==============
- allow stopping car rotation in air like in Trackmania - allow stopping car rotation in air like in Trackmania

7
game.h
View file

@ -1464,6 +1464,13 @@ LCR_replayOutputStr(_LCR_gameDataCharWrite);
{ {
// show the "loading" screen // show the "loading" screen
LCR_rendererDrawRect(
LCR_EFFECTIVE_RESOLUTION_X / 8 - 2,
LCR_EFFECTIVE_RESOLUTION_Y / 3 - 2,
LCR_EFFECTIVE_RESOLUTION_X - LCR_EFFECTIVE_RESOLUTION_X / 4 + 4,
LCR_EFFECTIVE_RESOLUTION_Y - 2 * LCR_EFFECTIVE_RESOLUTION_Y / 3 + 4,
0x0000,0);
LCR_rendererDrawRect( LCR_rendererDrawRect(
LCR_EFFECTIVE_RESOLUTION_X / 8, LCR_EFFECTIVE_RESOLUTION_X / 8,
LCR_EFFECTIVE_RESOLUTION_Y / 3, LCR_EFFECTIVE_RESOLUTION_Y / 3,

View file

@ -33,13 +33,12 @@
#define S3L_NEAR_CROSS_STRATEGY 1 #define S3L_NEAR_CROSS_STRATEGY 1
#define S3L_FLAT 1 #define S3L_FLAT 1
#endif #endif
#define S3L_NEAR (S3L_F / 2)
#include "small3dlib.h" #include "small3dlib.h"
/// Renderer specific unit, length of one map square. /// Renderer specific unit, length of one map square.
#define LCR_RENDERER_UNIT (S3L_F / 2) #define LCR_RENDERER_UNIT (S3L_F)
// NOTE: ^ S3L_F sometimes makes some triangles bug, S3L_F/2 seems to fix it
// but it's more jerky, maybe try to apply anti-overflow in S3L?
#define LCR_RENDERER_CHUNK_RESOLUTION 4 // do not change #define LCR_RENDERER_CHUNK_RESOLUTION 4 // do not change
#define LCR_RENDERER_LOD_BLOCKS 64 // do not change #define LCR_RENDERER_LOD_BLOCKS 64 // do not change