Update readme

This commit is contained in:
Miloslav Ciz 2025-06-18 02:02:30 +02:00
parent aab53fc11a
commit 822375ff7d
6 changed files with 178 additions and 36 deletions

View file

@ -41,13 +41,9 @@
#define S3L_PERSPECTIVE_CORRECTION 0
#define S3L_NEAR_CROSS_STRATEGY 1
#define S3L_FLAT 1
#define S3L_Z_BUFFER 0
#ifndef S3L_SORT
#define S3L_SORT 1
#endif
#define S3L_MAX_TRIANGES_DRAWN 48
#undef S3L_Z_BUFFER
#define S3L_Z_BUFFER 2 // simplified
#define S3L_MAX_TRIANGES_DRAWN 64 // lower, in case sorting was turned on
#endif
#define S3L_NEAR (10 * (S3L_F / 16)) // too low value will cause overflows
@ -330,11 +326,11 @@ void _LCR_pixelFunc3D(S3L_PixelInfo *pixel)
switch (tData & 0x0f)
{
case 3: LCR_renderer.flatAndTransparent &= ~(0x3008); break; // grass
case 4: LCR_renderer.flatAndTransparent &= ~(0x0408); break; // mud
case 5: LCR_renderer.flatAndTransparent |= 0x0010; break; // ice
case 6: LCR_renderer.flatAndTransparent |= 0x8080; break; // acc
case 7: LCR_renderer.flatAndTransparent &= ~(0x4208); break; // fan
case 3: LCR_renderer.flatAndTransparent &= ~(0x3008); break; // grass
case 4: LCR_renderer.flatAndTransparent &= ~(0x0408); break; // mud
case 5: LCR_renderer.flatAndTransparent |= 0x0010; break; // ice
case 6: LCR_renderer.flatAndTransparent |= 0x8080; break; // acc
case 7: LCR_renderer.flatAndTransparent &= ~(0x4208); break; // fan
case LCR_RENDERER_MAT_CP0:
LCR_renderer.flatAndTransparent = LCR_SETTING_CHECKPOINT_0_COLOR;
@ -718,7 +714,7 @@ int _LCR_rendererQuadCoversTri(const S3L_Unit quad[8], const S3L_Unit tri[6])
}
/**
Checks whether two triangles (and potenrially their neighbors) cover each
Checks whether two triangles (and potentially their neighbors) cover each
other, in return values lowest bit means whether t1 is covered and the second
lowest bit means whether t2 is covered.
*/
@ -1094,7 +1090,7 @@ uint8_t _LCR_buildMapModel(void)
(((VERT(triIndices[0],2) == VERT(triIndices[1],2)) && // same Z?
(VERT(triIndices[1],2) == VERT(triIndices[2],2))) << 5);
if (!(triData & 0xf0))
if (!triData)
{
// diagonal walls