mirror of
https://github.com/griffi-gh/hUI.git
synced 2024-12-22 12:28:19 -06:00
add hack
This commit is contained in:
parent
eac62c9041
commit
42d3b52272
|
@ -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