Skip to content

VSMShadowMap issue with receiveShadow=true and castShadow=false #17473

@ThorstenBux

Description

@ThorstenBux

Hi there,

I found that renderer.shadowMap.type=VSMShadowMap seems to have an issue in regards to 3D objects which are set to receiveShadow=true and castShadow=false.

In this fiddle you can see
https://jsfiddle.net/Thor_Bux/g1Loqb08/21/

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.
If the shadowMap.type is set to another type like PCFSoftShadowMap it works as expected. (See line 125, 126)

Three.js version
  • Dev
  • r108
Browser
  • [] All of them
  • Chrome
OS
  • [] All of them
  • macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions