Advertisement
Guest User

Untitled

a guest
Jul 29th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const int POINTLIGHT_MAX_NUM = 4;
  2. struct PointLight
  3. {
  4.     vec3 position;
  5.     vec3 color;
  6. };
  7. uniform PointLight pointlights[POINTLIGHT_MAX_NUM];
  8.  
  9. struct Material
  10. {
  11.     sampler2D albedoMap;
  12.     sampler2D normalMap;
  13.     sampler2D metallicMap;
  14.     sampler2D roughnessMap;
  15.     sampler2D aoMap;
  16.     sampler2D emissionMap;
  17. };
  18. uniform Material material;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement