mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 17:18:12 -05:00
25 lines
577 B
Text
25 lines
577 B
Text
#version 300 es
|
|
out mediump vec4 _glesFragData;
|
|
in mediump vec3 inNormal;
|
|
void main ()
|
|
{
|
|
mediump vec4 c_1;
|
|
mediump mat3 tmpvar_2;
|
|
tmpvar_2[uint(0)].x = 0.8164966;
|
|
tmpvar_2[uint(0)].y = -0.4082483;
|
|
tmpvar_2[uint(0)].z = -0.4082483;
|
|
tmpvar_2[1u].x = 0.0;
|
|
tmpvar_2[1u].y = 0.7071068;
|
|
tmpvar_2[1u].z = -0.7071068;
|
|
tmpvar_2[2u].x = 0.5773503;
|
|
tmpvar_2[2u].y = 0.5773503;
|
|
tmpvar_2[2u].z = 0.5773503;
|
|
c_1.xyz = (tmpvar_2 * inNormal);
|
|
c_1.w = 0.0;
|
|
_glesFragData = c_1;
|
|
}
|
|
|
|
|
|
// stats: 11 alu 0 tex 0 flow
|
|
// inputs: 1
|
|
// #0: inNormal (medium float) 3x1 [-1]
|