frame.glsl 425 B

123456789101112131415161718
  1. /* frame.glsl -- Contains all the information about the current frame.
  2. *
  3. * Copyright (c) 2025-2026 Le Juez Victor
  4. *
  5. * This software is provided 'as-is', without any express or implied warranty.
  6. * For conditions of distribution and use, see accompanying LICENSE file.
  7. */
  8. struct Frame {
  9. vec2 screenSize;
  10. vec2 texelSize;
  11. float time;
  12. int index;
  13. };
  14. layout(std140) uniform FrameBlock {
  15. Frame uFrame;
  16. };