Optimize EGLRenderer overlay texture swizzle
This commit is contained in:
parent
3e5aa9b127
commit
31c65e0863
1 changed files with 1 additions and 5 deletions
|
|
@ -4,9 +4,5 @@ uniform sampler2D uTexture;
|
||||||
varying vec2 vTexCoord;
|
varying vec2 vTexCoord;
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
vec4 abgr = texture2D(uTexture, vTexCoord);
|
gl_FragColor = texture2D(uTexture, vTexCoord).bgra;
|
||||||
|
|
||||||
gl_FragColor = abgr;
|
|
||||||
gl_FragColor.r = abgr.b;
|
|
||||||
gl_FragColor.b = abgr.r;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue