Skip to content

Commit

Permalink
reduce dithering
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Dobryakov authored and Pavel Dobryakov committed May 18, 2019
1 parent 176ba83 commit 49d6de7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ const displayBloomShader = compileShader(gl.FRAGMENT_SHADER, `
vec3 bloom = texture2D(uBloom, vUv).rgb;
vec3 noise = texture2D(uDithering, vUv * ditherScale).rgb;
noise = noise * 2.0 - 1.0;
bloom += noise / 255.0;
bloom += noise / 800.0;
bloom = pow(bloom.rgb, vec3(1.0 / 2.2));
C += bloom;
float a = max(C.r, max(C.g, C.b));
Expand Down Expand Up @@ -479,7 +479,7 @@ const displayBloomShadingShader = compileShader(gl.FRAGMENT_SHADER, `
vec3 bloom = texture2D(uBloom, vUv).rgb;
vec3 noise = texture2D(uDithering, vUv * ditherScale).rgb;
noise = noise * 2.0 - 1.0;
bloom += noise / 255.0;
bloom += noise / 800.0;
bloom = pow(bloom.rgb, vec3(1.0 / 2.2));
C += bloom;
Expand Down

0 comments on commit 49d6de7

Please sign in to comment.