bgfx/3rdparty/glsl-optimizer/tests/fragment/opt-copypropelems-swizzle-out.txt

14 lines
200 B
Plaintext
Raw Normal View History

2012-04-04 07:30:07 +04:00
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;
}