mirror of
https://github.com/enduro2d/enduro2d.git
synced 2025-12-15 00:11:55 +07:00
improve font shaders
This commit is contained in:
@@ -4,6 +4,6 @@ varying vec2 v_st0;
|
||||
varying vec4 v_color;
|
||||
|
||||
void main() {
|
||||
vec2 st = vec2(v_st0.s, 1.0 - v_st0.t);
|
||||
vec2 st = vec2(v_st0.s, v_st0.t);
|
||||
gl_FragColor = texture2D(u_texture, st) * v_color;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ varying vec2 v_st0;
|
||||
varying vec4 v_color;
|
||||
|
||||
void main() {
|
||||
v_st0 = a_st0;
|
||||
v_st0 = vec2(a_st0.s, 1.0 - a_st0.t);
|
||||
v_color = a_color0;
|
||||
gl_Position = vec4(a_vertex, 1.0) * u_matrix_m * u_matrix_vp;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ varying vec2 v_st0;
|
||||
varying vec4 v_color;
|
||||
|
||||
void main() {
|
||||
v_st0 = vec2(a_st0.s, 1.0 - a_st0.t);;
|
||||
v_st0 = vec2(a_st0.s, 1.0 - a_st0.t);
|
||||
v_color = a_color0;
|
||||
gl_Position = vec4(a_vertex, 1.0) * u_matrix_m * u_matrix_vp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user