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.

24 lines
500 B

  1. #version 450 core
  2. #pragma include ./glow_shared.glsl
  3. #pragma include ../misc/glow.glsl
  4. #pragma include ../misc/global.glsl
  5. const GlowArgs GLOW_ARGS = {
  6. /* step0 */ 0.100,
  7. /* step1 */ 0.900,
  8. /* pulseSize0 */ 0.050,
  9. /* pulseSize1 */ 0.100,
  10. /* pulseTime */ 2.000,
  11. };
  12. in FragmentData fragmentData;
  13. out vec4 outColor;
  14. void main() {
  15. float alpha = glow(GLOW_ARGS, fragmentData.texCoords, uGlobal.time);
  16. outColor = vec4(fragmentData.color, GLOW_ALPHA * alpha);
  17. }