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