Sign in to follow this  

Shadows in never ending world

Recommended Posts

Hey all,

Sorry to bother you with yet another shadow related question, but i'v ran into trouble. I'm doing some tests with dynamic world creation and shadows.

So i'm using directional light to cast shadows, but for every mesh i import the shadows get more and more "crispy". This is fine as long as i keep light.autoUpdateExtends as false.., BUT i ran into another issue; the "shadow projection" from the light is very slim and parallel with light angle, i simply don't know how to enlarge the shadow projection so it would fit with camera view.

Any ideas?

- eljuko

EDIT: added image. As u can see, the shadows from the rocks doesn't fit in the projection.


Share this post

Link to post
Share on other sites

Ok, so i think i found the solution from light.shadowFrustumSize = X and moving the light with camera. All this time i was trying to find the solution from shadowGenerator and forgot to experiment with the light itself :')

Share this post

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

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.