mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-29 02:55:36 -05:00
14 lines
200 B
Text
14 lines
200 B
Text
|
uniform sampler2D tex;
|
||
|
varying vec2 uv;
|
||
|
void main ()
|
||
|
{
|
||
|
vec4 v;
|
||
|
vec4 tmpvar_1;
|
||
|
tmpvar_1 = texture2D (tex, uv);
|
||
|
v = tmpvar_1;
|
||
|
v.xy = tmpvar_1.yx;
|
||
|
v.x = -(tmpvar_1.y);
|
||
|
gl_FragColor = v;
|
||
|
}
|
||
|
|