bgfx/3rdparty/glsl-optimizer/tests/fragment/zun-FX_Water_(simple)-out.txt

26 lines
787 B
Text
Raw Normal View History

2012-10-07 23:41:18 -04:00
uniform sampler2D _BumpMap;
2014-02-11 02:06:13 -05:00
uniform sampler2D _ColorControl;
uniform vec4 _horizonColor;
2012-10-07 23:41:18 -04:00
void main ()
{
vec4 col_1;
vec4 normal_2;
normal_2.xy = ((texture2D (_BumpMap, gl_TexCoord[0].xy).wy * 2.0) - 1.0);
2014-02-11 02:06:13 -05:00
normal_2.z = sqrt(((1.0 -
(normal_2.x * normal_2.x)
) - (normal_2.y * normal_2.y)));
2012-10-07 23:41:18 -04:00
vec4 normal_3;
normal_3.xy = ((texture2D (_BumpMap, gl_TexCoord[1].xy).wy * 2.0) - 1.0);
2014-02-11 02:06:13 -05:00
normal_3.z = sqrt(((1.0 -
(normal_3.x * normal_3.x)
) - (normal_3.y * normal_3.y)));
2012-10-07 23:41:18 -04:00
vec4 tmpvar_4;
tmpvar_4 = texture2D (_ColorControl, vec2(dot (gl_TexCoord[2].xyz, ((normal_2.xyz + normal_3.xyz) * 0.5))));
col_1.xyz = mix (tmpvar_4.xyz, _horizonColor.xyz, tmpvar_4.www);
col_1.w = _horizonColor.w;
gl_FragData[0] = col_1;
}
2014-02-11 02:06:13 -05:00
// inputs: 1, stats: 18 alu 3 tex 0 flow