No Description

shadow.vert 280B

1234567891011121314
  1. #version 450
  2. #extension GL_ARB_separate_shader_objects : enable
  3. #extension GL_ARB_shading_language_420pack : enable
  4. layout (location = 0) in vec4 inPos;
  5. layout (location = 0) out int outInstanceIndex;
  6. void main()
  7. {
  8. outInstanceIndex = gl_InstanceIndex;
  9. gl_Position = inPos;
  10. }