Light.vert.glsl 438 B

1234567891011121314151617181920212223
  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. #include "shaders/Common.glsl"
  6. layout(location = 0) in vec3 in_position;
  7. out gl_PerVertex
  8. {
  9. vec4 gl_Position;
  10. };
  11. layout(ANKI_UBO_BINDING(0, 0), row_major) uniform u0_
  12. {
  13. mat4 u_mvp;
  14. };
  15. void main()
  16. {
  17. ANKI_WRITE_POSITION(u_mvp * vec4(in_position, 1.0));
  18. }