Add a pop of color

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
2026-09-02 20:03:23 +02:00
parent 772973097f
commit 3be3aa7e3d
+19 -1
View File
@@ -884,7 +884,25 @@ void drawRays3D()
for (y = 0; y < lineHeight; y++)
{
float c = All_Textures[((int)textureY * mapSize) + textureX] * shade;
glColor3f(c, c, c);
// glColor3f(c, c, c);
if (horizontalMapTexture == 0) // Checkerboard
{
glColor3f(c, c, c / 2.0);
}
if (horizontalMapTexture == 1) // Brick
{
glColor3f(c, c / 2.0, c / 2.0);
}
if (horizontalMapTexture == 2) // Window
{
glColor3f(c / 2.0, c / 2.0, c);
}
if (horizontalMapTexture == 3) // Door
{
glColor3f(c / 2.0, c, c / 2.0);
}
glVertex2i(MAP_WIDTH + GAP + x, (int)(y + lineOffset));
textureY += textureYstep;
}