Skip to content

Commit 49d6de7

Browse files
Pavel DobryakovPavel Dobryakov
authored andcommitted
reduce dithering
1 parent 176ba83 commit 49d6de7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ const displayBloomShader = compileShader(gl.FRAGMENT_SHADER, `
404404
vec3 bloom = texture2D(uBloom, vUv).rgb;
405405
vec3 noise = texture2D(uDithering, vUv * ditherScale).rgb;
406406
noise = noise * 2.0 - 1.0;
407-
bloom += noise / 255.0;
407+
bloom += noise / 800.0;
408408
bloom = pow(bloom.rgb, vec3(1.0 / 2.2));
409409
C += bloom;
410410
float a = max(C.r, max(C.g, C.b));
@@ -479,7 +479,7 @@ const displayBloomShadingShader = compileShader(gl.FRAGMENT_SHADER, `
479479
vec3 bloom = texture2D(uBloom, vUv).rgb;
480480
vec3 noise = texture2D(uDithering, vUv * ditherScale).rgb;
481481
noise = noise * 2.0 - 1.0;
482-
bloom += noise / 255.0;
482+
bloom += noise / 800.0;
483483
bloom = pow(bloom.rgb, vec3(1.0 / 2.2));
484484
C += bloom;
485485

0 commit comments

Comments
 (0)