Nenhuma descrição

starsphere.vert 363B

12345678910111213141516171819
  1. #version 450
  2. #extension GL_ARB_separate_shader_objects : enable
  3. #extension GL_ARB_shading_language_420pack : enable
  4. layout (location = 0) in vec3 inPos;
  5. layout (std140, push_constant) uniform PushConsts
  6. {
  7. mat4 mvp;
  8. } pushConsts;
  9. layout (location = 0) out vec3 outUVW;
  10. void main()
  11. {
  12. outUVW = inPos;
  13. gl_Position = pushConsts.mvp * vec4(inPos.xyz, 1.0);
  14. }