ForwardShadingCommonVert.glsl 736 B

12345678910111213141516171819202122232425262728293031
  1. // Copyright (C) 2009-2018, Panagiotis Christopoulos Charitos and contributors.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. #ifndef ANKI_SHADERS_FORWARD_SHADING_COMMON_VERT_GLSL
  6. #define ANKI_SHADERS_FORWARD_SHADING_COMMON_VERT_GLSL
  7. // Common code for all vertex shaders of FS
  8. #include "shaders/Common.glsl"
  9. // Global resources
  10. #define LIGHT_SET 0
  11. #define LIGHT_SS_BINDING 0
  12. #define LIGHT_TEX_BINDING 1
  13. #define LIGHT_UBO_BINDING 0
  14. #define LIGHT_MINIMAL
  15. #include "shaders/ClusterLightCommon.glsl"
  16. #undef LIGHT_SET
  17. #undef LIGHT_SS_BINDING
  18. #undef LIGHT_TEX_BINDING
  19. // In/out
  20. layout(location = POSITION_LOCATION) in vec3 in_position;
  21. out gl_PerVertex
  22. {
  23. vec4 gl_Position;
  24. };
  25. #endif