commit
b240be8ba7
@ -6,7 +6,9 @@ attribute vec4 a_pos;
|
||||
void main() {
|
||||
gl_Position = u_mvp * a_pos;
|
||||
}
|
||||
|
||||
$$
|
||||
|
||||
#ifdef GLES
|
||||
precision highp float;
|
||||
#endif
|
||||
|
@ -22,7 +22,9 @@ main(){
|
||||
// last two bits hold the texture coordinates.
|
||||
v_st = abs(mod(dir, 4.0)) - 1.0;
|
||||
}
|
||||
|
||||
$$
|
||||
|
||||
#ifdef GLES
|
||||
precision highp float;
|
||||
#endif
|
||||
|
@ -12,6 +12,7 @@ main(){
|
||||
v_st2 = clamp(a_pos.xy, 0.0, 1.0) * (4.0 / u_scale.y);
|
||||
gl_Position = u_mvp * a_pos;
|
||||
}
|
||||
|
||||
$$
|
||||
|
||||
#ifdef GLES
|
||||
|
@ -21,7 +21,6 @@ uniform vec2 u_pixel;
|
||||
varying vec2 tex_pos;
|
||||
|
||||
void main(){
|
||||
|
||||
gl_FragColor = texture2D(u_texColor, tex_pos) * 0.8;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user