chroms3 Posted March 22, 2016 Share Posted March 22, 2016 How to make the shadow more accurate? untitled1.rar OMAR 1 Quote Link to comment Share on other sites More sharing options...
Dad72 Posted March 22, 2016 Share Posted March 22, 2016 http://www.babylonjs.com/Demos/AdvancedShadows/ You can use the playground also to show. chroms3 1 Quote Link to comment Share on other sites More sharing options...
OMAR Posted March 22, 2016 Share Posted March 22, 2016 (edited) 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 March 22, 2016 by OMAR chroms3 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.