Downgrade shaders further

This commit is contained in:
Olivier 'reivilibre' 2021-06-26 19:31:46 +01:00
parent 8d5972d943
commit 13ce059bdf
2 changed files with 6 additions and 8 deletions

View File

@ -2,10 +2,8 @@
uniform sampler2D font_sampler; uniform sampler2D font_sampler;
in vec2 f_tex_pos; varying vec2 f_tex_pos;
in vec4 f_color; varying vec4 f_color;
varying out vec4 Target0;
void main() { void main() {
float alpha = texture2D(font_sampler, f_tex_pos).r; float alpha = texture2D(font_sampler, f_tex_pos).r;
@ -14,5 +12,5 @@ void main() {
discard; discard;
} }
Target0 = f_color * vec4(1.0, 1.0, 1.0, alpha); gl_FragColor = f_color * vec4(1.0, 1.0, 1.0, alpha);
} }

View File

@ -2,9 +2,9 @@
uniform mat4 transform; uniform mat4 transform;
in vec2 tex_pos; attribute vec2 tex_pos;
in vec3 pos; attribute vec3 pos;
in vec4 color; attribute vec4 color;
varying vec2 f_tex_pos; varying vec2 f_tex_pos;
varying vec4 f_color; varying vec4 f_color;