max123 Posted September 14, 2018 Share Posted September 14, 2018 Hi folks, I'm having trouble with shadows - they seem to be 'floating', as you can see from the screenshots. The problem is much worse when I don't use usePercentageCloserFiltering. As you can see, the meshes do intersect! Unfortunately, I can't do a PG as it's a complex scene and is heavily copyrighted The settings for shadows are: let shadowGenerator = new BABYLON.ShadowGenerator(2048, shadowLight); shadowGenerator.usePercentageCloserFiltering = true; Any ideas? Quote Link to comment Share on other sites More sharing options...
Guest Posted September 14, 2018 Share Posted September 14, 2018 Hello! try to play with generator.bias to fight against that (it is called peter-panning :)) Doc to read: http://doc.babylonjs.com/babylon101/shadows jps0611 and max123 1 1 Quote Link to comment Share on other sites More sharing options...
max123 Posted September 17, 2018 Author Share Posted September 17, 2018 yep, bias seemed to solve the issue! 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.