mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-04 21:31:11 -05:00
24 lines
508 B
Text
24 lines
508 B
Text
|
#version 300 es
|
||
|
out lowp vec4 _fragData;
|
||
|
in lowp vec3 normal;
|
||
|
in lowp vec3 halfDir;
|
||
|
uniform mediump float specPower;
|
||
|
void main ()
|
||
|
{
|
||
|
lowp vec4 c_1;
|
||
|
lowp float tmpvar_2;
|
||
|
tmpvar_2 = dot (normal, halfDir);
|
||
|
mediump vec4 tmpvar_3;
|
||
|
tmpvar_3 = vec4(pow (tmpvar_2, specPower));
|
||
|
c_1 = tmpvar_3;
|
||
|
_fragData = c_1;
|
||
|
}
|
||
|
|
||
|
|
||
|
// stats: 2 alu 0 tex 0 flow
|
||
|
// inputs: 2
|
||
|
// #0: normal (low float) 3x1 [-1]
|
||
|
// #1: halfDir (low float) 3x1 [-1]
|
||
|
// uniforms: 1 (total size: 0)
|
||
|
// #0: specPower (medium float) 1x1 [-1]
|