mirror of
https://github.com/enduro2d/enduro2d.git
synced 2025-12-16 14:08:59 +07:00
fix spine shaders after merge
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
#version 120
|
||||
|
||||
uniform sampler2D u_texture;
|
||||
|
||||
varying vec4 v_tint;
|
||||
varying vec2 v_st;
|
||||
varying vec2 v_st0;
|
||||
varying vec4 v_color0;
|
||||
|
||||
void main() {
|
||||
gl_FragColor = texture2D(u_texture, v_st) * v_tint;
|
||||
gl_FragColor = texture2D(u_texture, v_st0) * v_color0;
|
||||
}
|
||||
|
||||
@@ -1,16 +1,18 @@
|
||||
#version 120
|
||||
|
||||
uniform mat4 u_matrix_vp;
|
||||
|
||||
attribute vec3 a_vertex;
|
||||
attribute vec4 a_tint;
|
||||
attribute vec2 a_st;
|
||||
attribute vec2 a_st0;
|
||||
attribute vec4 a_color0;
|
||||
|
||||
varying vec4 v_tint;
|
||||
varying vec2 v_st;
|
||||
varying vec2 v_st0;
|
||||
varying vec4 v_color0;
|
||||
|
||||
vec4 vertex_to_homo(vec3 pos) {
|
||||
return vec4(pos, 1.0) * u_matrix_vp;
|
||||
}
|
||||
|
||||
void main() {
|
||||
v_st = a_st;
|
||||
v_tint = a_tint;
|
||||
gl_Position = vec4(a_vertex, 1.0) * u_matrix_vp;
|
||||
v_st0 = a_st0;
|
||||
v_color0 = a_color0;
|
||||
gl_Position = vertex_to_homo(a_vertex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user