mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 17:18:12 -05:00
16 lines
266 B
Text
16 lines
266 B
Text
|
#version 300 es
|
||
|
out lowp vec4 _fragData;
|
||
|
in lowp vec3 normal;
|
||
|
in 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);
|
||
|
_fragData = c;
|
||
|
}
|