# SSAO Pass: Camera Scale affecting SSAO effect

**URL:** <https://discourse.threejs.org/t/ssao-pass-camera-scale-affecting-ssao-effect/46179>\
**Category:** Questions\
**Tags:** passes, effect-composer, effect, camera, ssao\
**Created:** [December 24, 2022, 8:51am UTC](https://discourse.threejs.org/t/ssao-pass-camera-scale-affecting-ssao-effect/46179 "2022-12-24T08:51:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cabada](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/cabada/32/38883_2.png) [@cabada](https://discourse.threejs.org/u/cabada)\
**Post date:** [December 24, 2022, 8:51am UTC](https://discourse.threejs.org/t/ssao-pass-camera-scale-affecting-ssao-effect/46179/1 "2022-12-24T08:51:48Z")

</div>

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.](https://github.com/pmndrs/postprocessing) as follows:

```javascript
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)`:

 ![Screenshot 2022-12-24 at 2.43.58](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/c/2/c2ef08f4d641d06e8c4ed53560a4d4dc3d0be7cf.jpeg)

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

 ![Screenshot 2022-12-24 at 2.45.19](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/3/f/3f7c91327e0decb6d967d4500831fa98092ebdba.jpeg)

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

 ![Screenshot 2022-12-24 at 2.45.55](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/2/3/23e89bd6a3bdec29aeb81d40f6eb987beed361dd.jpeg)

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

 ![Screenshot 2022-12-24 at 2.46.24](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/a/2/a2321b0ad27f5162d974a0aa7cee5cff6ca279c0.jpeg)

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

 ![Screenshot 2022-12-24 at 2.46.49](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/d/2/d2328342f92c9619c708ee96e88e5a48c8b39b39.jpeg)

_(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](https://github.com/pmndrs/postprocessing/issues/441)_
