Recast: improve box shading

Make voxels easier to see by making each face appear slightly lighter/darker.
This commit is contained in:
Kawe Mazidjatari 2024-07-16 15:58:03 +02:00
parent 1d2dd0a2d5
commit b5eb23c956

View File

@ -69,10 +69,10 @@ void duCalcBoxColors(unsigned int* colors, unsigned int colTop, unsigned int col
colors[0] = duMultCol(colTop, 250); colors[0] = duMultCol(colTop, 250);
colors[1] = duMultCol(colSide, 140); colors[1] = duMultCol(colSide, 140);
colors[2] = duMultCol(colSide, 165); colors[2] = duMultCol(colSide, 185);
colors[3] = duMultCol(colSide, 217); colors[3] = duMultCol(colSide, 227);
colors[4] = duMultCol(colSide, 165); colors[4] = duMultCol(colSide, 165);
colors[5] = duMultCol(colSide, 217); colors[5] = duMultCol(colSide, 207);
} }
void duDebugDrawCylinderWire(struct duDebugDraw* dd, float minx, float miny, float minz, void duDebugDrawCylinderWire(struct duDebugDraw* dd, float minx, float miny, float minz,