bis Posted April 27, 2017 Share Posted April 27, 2017 Hi, I'm new to babylon I am currently facing this situation: I want to display a mesh with a projected shadow on it: to generate the shadow I use a light and another mesh. I change the alpha level of this second mesh and I see no shadow anymore...is there a way to get a shadow from a transparent mesh? I know it will sound strange but I like to get this behaviour. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 27, 2017 Share Posted April 27, 2017 You can enable shadows on transparent meshes with: generator.setTransparencyShadow(true) Nesh108 and Wingnut 2 Quote Link to comment Share on other sites More sharing options...
bis Posted May 9, 2017 Author Share Posted May 9, 2017 Great! thank you...I add another issue. The transparent mesh produce shadow but the mesh remains clickable. If I disable the mesh the shadow desappear...is there a way to keep the shadow alive? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 9, 2017 Share Posted May 9, 2017 You can just call mesh.isPickable = false Quote Link to comment Share on other sites More sharing options...
bis Posted May 10, 2017 Author Share Posted May 10, 2017 Thank you! That's do the magic...soon I will look for a docs with all this stuff; I can't belive that I could have lost such a simple solution. 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.