You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 line
478 B

  1. #version 450 core
  2. const float GLOW_SIZE_FACTOR = 2.00;
  3. layout (location = 0) in vec3 position;
  4. layout (std140, binding = 0) uniform Camera {
  5. mat4 projection;
  6. mat4 view;
  7. vec2 size;
  8. } camera;
  9. layout (location = 1) uniform mat4 model;
  10. out FragmentData {
  11. vec2 texCoords;
  12. } data;
  13. void main() {
  14. data.texCoords = position.xy * GLOW_SIZE_FACTOR + vec2(0.5);
  15. gl_Position = camera.projection * camera.view * model * vec4(position * GLOW_SIZE_FACTOR, 1.0);
  16. }