mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-11 00:31:28 -05:00
13 lines
238 B
Text
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;
|
|
}
|