Advertisement
Guest User

Untitled

a guest
Apr 19th, 2013
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.44 KB | None | 0 0
  1.             vec3 lightAccum = u_sh[0];
  2.            
  3.             lightAccum += u_sh[1] * normal.x;
  4.             lightAccum += u_sh[2] * normal.y;
  5.             lightAccum += u_sh[3] * normal.z;
  6.            
  7.             lightAccum += u_sh[4] * (normal.x * normal.z);
  8.             lightAccum += u_sh[5] * (normal.z * normal.y);
  9.             lightAccum += u_sh[6] * (normal.y * normal.x);
  10.            
  11.             lightAccum += u_sh[7] * (3.0 * normal.z * normal.z - 1.0);
  12.             lightAccum += u_sh[8] * (normal.x * normal.x - normal.y * normal.y);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement