Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Light {
- vec4 pos; // w == 0 -> directional light
- vec3 color;
- float constantAttenuation, linearAttenuation, quadraticAttenuation;
- float spotCutoff, spotExponent;
- vec3 spotDir;
- };
- uniform sampler2D texture;
- uniform Light lights;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement