captainleighwalker

No shadow from clone

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

 

Share this post


Link to post
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

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.