Jump to content

No shadow from clone


captainleighwalker
 Share

Recommended Posts

No bug here :)

just need to move the light: https://www.babylonjs-playground.com/#JE0ZA7#1

http://doc.babylonjs.com/babylon101/shadows#directional-lights

Quote

The light's position, as well as the positions of the mesh that you have pushed into the renderlist, determine where the shadows will appear. Note that your light point-of-view from this position have to view all meshes in the renderList; otherwise the shadows may not be rendered

 

Link to comment
Share on other sites

Yes it does work in this PG but on my mesh it's not. I have tried all sorts of angles and distances by setting light parent to the camera. It does work with forceBackFacesOnly = false but I though having this true would save some processor.

You can see in this image.

By the way I have used csg on the original mesh before cloning.

image.thumb.png.8a5064d6985e301720bf7a69c57b0c9f.png

 

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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

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