<p dir="auto">After some debugging in my application, I came across a peculiar bug. If you set <code class="notranslate">castShadow = false</code> on a <code class="notranslate">Mesh</code> and use <code class="notranslate">VSMShadowMap</code> - the shadow is still being drawn. If you use  <code class="notranslate">PCFSoftShadowMap</code> - the shadow is not rendered, as expected.</p>
<p dir="auto">Hi there,</p>
<p dir="auto">I found that <code class="notranslate">renderer.shadowMap.type=VSMShadowMap</code> seems to have an issue in regards to 3D objects which are set to receiveShadow=true and castShadow=false.</p>
<p dir="auto">In this fiddle you can see<br>
<a href="https://jsfiddle.net/Thor_Bux/g1Loqb08/21/" rel="nofollow">https://jsfiddle.net/Thor_Bux/g1Loqb08/21/</a></p>
<p dir="auto">That the red cube is set to castShadow=false and receiveShadow=true however if the shadowMap.type is set to VSMShadowMap it also casts a shadow.<br>
If the shadowMap.type is set to another type like PCFSoftShadowMap it works as expected. (See line 125, 126)</p>
<h5 dir="auto">Three.js version</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Dev</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r108</li>
</ul>
<h5 dir="auto">Browser</h5>
<ul class="contains-task-list">
<li>[] All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Chrome</li>
</ul>
<h5 dir="auto">OS</h5>
<ul class="contains-task-list">
<li>[] All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> macOS</li>
</ul>