view/renderer: simplify fragment shader
This commit is contained in:
parent
7b9d467386
commit
a86a80e402
1 changed files with 4 additions and 2 deletions
|
@ -1,8 +1,10 @@
|
||||||
varying highp vec2 vTextureCoord;
|
precision highp float;
|
||||||
|
|
||||||
|
varying vec2 vTextureCoord;
|
||||||
|
|
||||||
uniform sampler2D uSampler;
|
uniform sampler2D uSampler;
|
||||||
|
|
||||||
|
|
||||||
void main(void) {
|
void main(void) {
|
||||||
gl_FragColor = texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y));
|
gl_FragColor = texture2D(uSampler, vTextureCoord);
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue