Jump to content

problem with shadows


chroms3
 Share

Recommended Posts

Hi chroms3,

you can increase the size of the shadow map to increase the quality of the shadow. Check this code below:

var shadowGenerator = new BABYLON.ShadowGenerator(1024, light);

Here, 1024 is the size of the shadow map and it defines the quality of the shadow,

you can increase this value to get better quality shadows, but keep in mind that doing so will require more computer resources to render it.

I usually use 2048, but you will need to set this value lower if you want your Babylon app to render smoothly on low-end devices as well

 

For more info check http://doc.babylonjs.com/tutorials/Shadows

Edited by OMAR
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...