Skip to content

Commit

Permalink
color red if texture not found
Browse files Browse the repository at this point in the history
  • Loading branch information
dsvensson authored Dec 8, 2024
1 parent b4b5213 commit b7feb85
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/glsl/draw_world.fragment.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ void main()

lmColor = texture(lightmapTex, TexCoordLightmap);
texColor = texture(materialTex[SamplerNumber], tex);
if (texColor.a == 0) {
texColor = vec4(1.0, 0.0, 0.0, 1.0);
}

#ifdef DRAW_ALPHATEST_ENABLED
#ifdef DRAW_TEXTURELESS
Expand Down

0 comments on commit b7feb85

Please sign in to comment.