bgfx/3rdparty/glsl-optimizer/tests/fragment/opt-copypropelems-swizzle-out.txt
2014-02-10 23:06:13 -08:00

15 lines
255 B
Text

varying vec2 uv;
uniform sampler2D tex;
void main ()
{
vec4 v_1;
vec4 tmpvar_2;
tmpvar_2 = texture2D (tex, uv);
v_1.zw = tmpvar_2.zw;
v_1.y = tmpvar_2.x;
v_1.x = -(tmpvar_2.y);
gl_FragColor = v_1;
}
// inputs: 1, stats: 1 alu 1 tex 0 flow