Browse Source

Downgrade shaders further

master
Olivier 'reivilibre' 4 months ago
parent
commit
13ce059bdf
  1. 8
      src/shader/fragment.frag
  2. 6
      src/shader/vertex.vert

8
src/shader/fragment.frag

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

6
src/shader/vertex.vert

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

Loading…
Cancel
Save