mirror of
https://github.com/griffi-gh/hUI.git
synced 2024-11-21 22:58:42 -06:00
add hack
This commit is contained in:
parent
e2a328f4b7
commit
fe093c5db2
|
@ -9,5 +9,10 @@ in vec2 vtx_uv;
|
|||
uniform sampler2D tex;
|
||||
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue