bgfx/3rdparty/glsl-optimizer/tests/fragment/opt-grafting-precision-inES.txt
Branimir Karadzic dee3fe5266 Initial commit.
2012-04-03 20:30:07 -07:00

13 lines
238 B
Text

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;
}