bgfx/3rdparty/glsl-optimizer/tests/fragment/opt-grafting-precision-inES.txt

14 lines
238 B
Text
Raw Normal View History

2012-04-03 23:30:07 -04:00
varying lowp vec3 normal;
varying lowp vec3 halfDir;
uniform mediump float specPower;
void main()
{
lowp float nh = dot (normal, halfDir);
mediump float spec = pow (nh, specPower);
lowp vec4 c;
c = vec4(spec);
gl_FragColor = c;
}