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