SSAO Pass: Camera Scale affecting SSAO effect

I’ve found that if I change the camera scale (literally, camera.scale.set(10,10,10)); the SSAO diminishes it’s effect.

I’m using SSAO effect from GitHub - pmndrs/postprocessing: A post processing library that provides the means to implement image filter effects for three.js. as follows:

const normalPass = new NormalPass(scene, camera);
const effect = new SSAOEffect(camera, normalPass.texture, {
	worldDistanceThreshold: 20,
	worldDistanceFalloff: 5,
	worldProximityThreshold: 0.4,
	worldProximityFalloff: 0.1,
	luminanceInfluence: 0.7,
	samples: 16,
	radius: 0.04,
	intensity: 1,
	resolutionScale: 0.5
});

Here are some images on how camera scale affects the SSAO effect. (I exaggerated intensity of SSAO so it’s more clear)

When Camera Scale is (1,1,1):

When Camera Scale is (2,2,2):

When Camera Scale is (5,5,5):

When Camera Scale is (10,10,10):

When Camera Scale is (20,20,20):

(All screenshots had the same intensity value for the SSAO)

What can I adjust on the SSAO effect so it’s get “normalized” to whatever I set as the camera scale?

(Note: I’ve had other problems before because of using a different camera scale than (1,1,1), and I’ve solved it by just multiplying whatever’s been affected by the scale of the camera. But in this case I haven’t been able to figure out what parameters needs to be adjusted.)

Posted duplicate in: SSAO Pass: Camera Scale affecting SSAO effect · Issue #441 · pmndrs/postprocessing · GitHub