14 lines
238 B
Plaintext
14 lines
238 B
Plaintext
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;
|
|
}
|