smaa.glsl 657 B

123456789101112131415161718192021222324
  1. /* smaa.glsl -- Includes SMAA.hlsl with the correct configuration
  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. #include "../include/blocks/frame.glsl"
  9. #define SMAA_GLSL_3
  10. #define SMAA_RT_METRICS vec4(uFrame.texelSize, uFrame.screenSize)
  11. #if QUALITY_PRESET == 0
  12. # define SMAA_PRESET_LOW
  13. #elif QUALITY_PRESET == 1
  14. # define SMAA_PRESET_MEDIUM
  15. #elif QUALITY_PRESET == 2
  16. # define SMAA_PRESET_HIGH
  17. #elif QUALITY_PRESET == 3
  18. # define SMAA_PRESET_ULTRA
  19. #endif
  20. #include "../external/SMAA.hlsl"