fragment.glsl 271 B

123456789
  1. void main()
  2. {
  3. float distanceToCenter = distance(gl_PointCoord, vec2(0.5));
  4. float strength = 0.05 / distanceToCenter - 0.1;
  5. gl_FragColor = vec4(1.0, 1.0, 1.0, clamp(strength, 0.0, 1.0));
  6. #include <tonemapping_fragment>
  7. #include <colorspace_fragment>
  8. }