<p dir="auto">MeshPhysicalMaterial.aoMap does not contribute to envMap occlusion</p>
<p dir="auto">Steps to reproduce the behavior:</p>
<ol dir="auto">
<li>Go to <a href="https://threejs.org/examples/webgl_materials_displacementmap.html" rel="nofollow">https://threejs.org/examples/webgl_materials_displacementmap.html</a></li>
<li>Remove ambient intensity and increase roughness and environment intensity to max.</li>
<li>Notice that occlusion map is not visible like it is with ambient lighting.</li>
</ol>
<p dir="auto">Similar issues have emerged before like <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="132959070" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/8107" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/8107/hovercard" href="https://github.com/mrdoob/three.js/issues/8107">#8107</a> fixed by <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="134162594" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/8152" data-hovercard-type="pull_request" data-hovercard-url="/mrdoob/three.js/pull/8152/hovercard" href="https://github.com/mrdoob/three.js/pull/8152">#8152</a> and possibly others.</p>
<p dir="auto">Perhaps I'm unaware and this is expected behavior. But I imagine ambient occlusion should also occlude environment map. At least when the surface completely diffuse when the physics of light is pretty much the same as ambient lighting.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/708984/94968182-5402e680-04b5-11eb-8c5b-081baab80506.png"><img width="1263" alt="Screen Shot 2020-10-02 at 1 43 16 PM" src="https://user-images.githubusercontent.com/708984/94968182-5402e680-04b5-11eb-8c5b-081baab80506.png" style="max-width: 100%;"></a></p>
<p dir="auto">Hello,</p>
<p dir="auto">In the following scenes rendered using the MeshStandardMaterial and a white ambientLight, you can see</p>
<ul dir="auto">
<li>an object using an aoMap without any envMap (so no dynamic reflexion):<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/02d395e6e2db71edb8e9c1cc5b309413f5b138b970c338767d8f53e13eca6b5d/68747470733a2f2f692e696d6775722e636f6d2f454b325358524f2e6a7067"><img src="https://camo.githubusercontent.com/02d395e6e2db71edb8e9c1cc5b309413f5b138b970c338767d8f53e13eca6b5d/68747470733a2f2f692e696d6775722e636f6d2f454b325358524f2e6a7067" alt="2016 02 11 couch_envmap_off" data-canonical-src="https://i.imgur.com/EK2SXRO.jpg" style="max-width: 100%;"></a></li>
<li>an object using an aoMap with an envMap (so with dynamic reflexion):<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/966a9ceab09153f4b3d8a205da2d30284aa99c19361a0f778bf7843c38be4f60/68747470733a2f2f692e696d6775722e636f6d2f787976703936532e6a7067"><img src="https://camo.githubusercontent.com/966a9ceab09153f4b3d8a205da2d30284aa99c19361a0f778bf7843c38be4f60/68747470733a2f2f692e696d6775722e636f6d2f787976703936532e6a7067" alt="2016 02 11 couch_envmap_on" data-canonical-src="https://i.imgur.com/xyvp96S.jpg" style="max-width: 100%;"></a></li>
</ul>
<p dir="auto">The problem is that in the second case (which is the one I'm trying to achieve), the light from the envMap (or reflexions) is not occluded by the aoMap. This leaves the rendering with bright regions that should be dark (for example, behind the cushion on the right side, there's light between the cushion and the back of the seat. According to the aoMap, it should be completely dark - as it is when I turn of the envMap like in the first case).</p>
<p dir="auto">I saw a few discussions on the topic, specifically in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="112176256" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/7377" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/7377/hovercard" href="https://github.com/mrdoob/three.js/issues/7377">#7377</a>, but I was wondering if</p>
<ul dir="auto">
<li>I understood right, and what I'm seeing is currently expected for three.js?</li>
<li>this behavior is going to be improved/fixed in the future?</li>
</ul>
<p dir="auto">Thanks in advance for your help,</p>
<p dir="auto">Silvain Toromanoff</p>