ForwardShadingCommonVert.glsl 566 B

123456789101112131415161718192021222324
  1. // Copyright (C) 2009-2020, Panagiotis Christopoulos Charitos and contributors.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. #pragma once
  6. // Common code for all vertex shaders of FS
  7. #include <shaders/Common.glsl>
  8. // Global resources
  9. #define LIGHT_SET 0
  10. #define LIGHT_COMMON_UNIS_BINDING 3
  11. #define LIGHT_LIGHTS_BINDING 4
  12. #define LIGHT_CLUSTERS_BINDING 7
  13. #include <shaders/ClusteredShadingCommon.glsl>
  14. // In/out
  15. layout(location = POSITION_LOCATION) in Vec3 in_position;
  16. out gl_PerVertex
  17. {
  18. Vec4 gl_Position;
  19. };