mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-29 02:55:36 -05:00
28 lines
608 B
Text
28 lines
608 B
Text
uniform mediump float specPower;
|
|
varying lowp vec3 halfDir;
|
|
varying lowp vec3 normal;
|
|
void main ()
|
|
{
|
|
lowp vec4 c_1;
|
|
mediump float spec_2;
|
|
lowp float nh_3;
|
|
lowp float tmpvar_4;
|
|
tmpvar_4 = dot (normal, halfDir);
|
|
lowp float tmpvar_5;
|
|
tmpvar_5 = tmpvar_4;
|
|
nh_3 = tmpvar_5;
|
|
mediump float tmpvar_6;
|
|
tmpvar_6 = pow (nh_3, specPower);
|
|
mediump float tmpvar_7;
|
|
tmpvar_7 = tmpvar_6;
|
|
spec_2 = tmpvar_7;
|
|
mediump vec4 tmpvar_8;
|
|
tmpvar_8 = vec4(spec_2);
|
|
mediump vec4 tmpvar_9;
|
|
tmpvar_9 = tmpvar_8;
|
|
c_1 = tmpvar_9;
|
|
lowp vec4 tmpvar_10;
|
|
tmpvar_10 = c_1;
|
|
gl_FragColor = tmpvar_10;
|
|
}
|
|
|