mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-12-26 05:38:20 -06:00
fix ui shader
This commit is contained in:
parent
fcc19a58a5
commit
a8d5b4a752
|
@ -1,10 +1,11 @@
|
||||||
#version 300 es
|
#version 300 es
|
||||||
|
|
||||||
precision highp float;
|
precision highp float;
|
||||||
|
|
||||||
out vec4 out_color;
|
out vec4 out_color;
|
||||||
uniform vec4 color;
|
in vec4 vtx_color;
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
if (color.w <= 0.) discard;
|
if (vtx_color.w <= 0.) discard;
|
||||||
out_color = color;
|
out_color = vtx_color;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,13 @@
|
||||||
#version 300 es
|
#version 300 es
|
||||||
|
|
||||||
precision highp float;
|
precision highp float;
|
||||||
in vec2 position;
|
|
||||||
uniform vec2 resolution;
|
uniform vec2 resolution;
|
||||||
|
in vec4 color;
|
||||||
|
in vec2 position;
|
||||||
|
out vec4 vtx_color;
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
|
vtx_color = color;
|
||||||
gl_Position = vec4(vec2(1., -1.) * (position / resolution), 0., 1.);
|
gl_Position = vec4(vec2(1., -1.) * (position / resolution), 0., 1.);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue