Jump to content

shadow on itself


mirco
 Share

Recommended Posts

Hi, i have a question about shadows, is it possible to let a mesh cast shadow on it self?

Currently I can make a tree looking like the first picture, but in this case the 3d deep looks not that good.

I looking for a solution I can get a tree like the second picture.

Thanks for your help

Mirco

picture1.png

picture2.png

Link to comment
Share on other sites

Thank you Deltakosh for your help.

When using BABYLON.DirectionalLight  ( whats not really depending on the position because its an infinite light ) with light.shadowMinZ and shadowMaxZ I have to take care of the position to get this beautiful shadows and maybe move the light with the camera.

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