This commit is contained in:
griffi-gh 2024-03-06 21:35:32 +01:00
parent e2a328f4b7
commit fe093c5db2

View file

@ -9,5 +9,10 @@ in vec2 vtx_uv;
uniform sampler2D tex; uniform sampler2D tex;
void main() { void main() {
//HACK: if vtx_uv is (0, 0) then the texture is not used
if (vtx_uv.x == 0.0 && vtx_uv.y == 0.0) {
out_color = vtx_color;
return;
}
out_color = texture(tex, vtx_uv) * vtx_color; out_color = texture(tex, vtx_uv) * vtx_color;
} }