LfOcclusion.vert.glsl 521 B

123456789101112131415161718192021222324252627
  1. // Copyright (C) 2009-2017, Panagiotis Christopoulos Charitos and contributors.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. // LF occlusion vert shader
  6. #include "shaders/Common.glsl"
  7. layout(ANKI_UBO_BINDING(0, 0), std140, row_major) uniform _block
  8. {
  9. mat4 u_mvp;
  10. };
  11. layout(location = 0) in vec3 in_position;
  12. out gl_PerVertex
  13. {
  14. vec4 gl_Position;
  15. float gl_PointSize;
  16. };
  17. void main()
  18. {
  19. ANKI_WRITE_POSITION(u_mvp * vec4(in_position, 1.0));
  20. gl_PointSize = 16.0;
  21. }