Jump to content

shadow issue


Recommended Posts

see the following playground


This has a ground , 2 boxes and a DirectionalLight

The two boxes cast shadow on ground.

If you move the two boxes away from each other the shadows cast by them start fading, becomes less sharp.

un-comment 13 and comment out 14 to see this effect

Is this expected behavior ?

(The above does not happen for useVarianceShadowMap)

Also is there any documentation on

shadowGenerator's properties






Link to comment
Share on other sites


I see what you mean.

So if I set the position of the meshes , set  autoUpdateExtends  to false and then change the  position of one of  the mesh then the shadow of the other meshes do not change.

Of course the mesh which is moved no longer shows any shadow.

can be seen here


clicking the canvas toggles the position of one of the box.

un-commenting line  36 shows the effect of autoUpdateExtends 

shadowOrthoScale  also helps

Nice, Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...