mirror of
https://github.com/griffi-gh/hUI.git
synced 2024-11-09 17:38:42 -06:00
add hack
This commit is contained in:
parent
eac62c9041
commit
42d3b52272
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue