Guest User

Untitled

a guest
Jul 8th, 2014
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. struct Light {
  2.     vec4 pos[MAX_LIGHTS]; // w == 0 -> directional light
  3.     vec3 color[MAX_LIGHTS];
  4.     float constantAttenuation[MAX_LIGHTS], linearAttenuation[MAX_LIGHTS], quadraticAttenuation[MAX_LIGHTS];
  5.     float spotCutoff[MAX_LIGHTS], spotExponent[MAX_LIGHTS];
  6.     vec3 spotDir[MAX_LIGHTS];
  7. };
  8.  
  9. uniform Light lights;
Advertisement
Add Comment
Please, Sign In to add comment