Add car tint
This commit is contained in:
parent
8fda53cb35
commit
9a431f72de
3 changed files with 31 additions and 2 deletions
21
renderer.h
21
renderer.h
|
@ -340,6 +340,27 @@ void _LCR_pixelFunc3D(S3L_PixelInfo *pixel)
|
|||
for (int i = 0; i < 6; ++i)
|
||||
LCR_renderer.triUVs[i] = (LCR_carUvs[2 * LCR_carTriangleUvs[3 *
|
||||
pixel->triangleIndex + i / 2] + i % 2] * (LCR_IMAGE_SIZE + 1)) / 512;
|
||||
|
||||
#if (LCR_SETTING_CAR_TINT & 0x7) != 0x07
|
||||
for (int i = 0; i < 256; ++i)
|
||||
LCR_currentImage.palette[i] &=
|
||||
#if LCR_SETTING_CAR_TINT & 0x01
|
||||
0x001f |
|
||||
#else
|
||||
0x0003 |
|
||||
#endif
|
||||
#if LCR_SETTING_CAR_TINT & 0x02
|
||||
0x07e0 |
|
||||
#else
|
||||
0x00e0 |
|
||||
#endif
|
||||
#if LCR_SETTING_CAR_TINT & 0x04
|
||||
0xf800
|
||||
#else
|
||||
0x1800
|
||||
#endif
|
||||
;
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue