Make debug texture prettier

This commit is contained in:
Malin E
2023-03-01 17:33:26 +01:00
parent 5a6ac848f9
commit 896ca0f108

View File

@@ -72,7 +72,7 @@ Fragment getFragment() {
// Render invisible mesh with flashy procedural material
if (use_forced_color) {
vec3 adjustedPos = floor(vs_positionCameraSpace.xyz * 3.0);
vec3 adjustedPos = floor(vs_positionCameraSpace.xyz / 500.0);
float chessboard = adjustedPos.x + adjustedPos.y + adjustedPos.z;
chessboard = fract(chessboard * 0.5);
chessboard *= 2;