odda Posted December 4, 2018 Share Posted December 4, 2018 Hi, I am looking for a solution to achieve some kind of 'shared' transparency for parent and child meshes. Here is my simple playground https://playground.babylonjs.com/#IVDZNQ The idea is to make both boxes be transparent against the ground (and other meshes) but not transparent to themselves. Please see the picture below. Can you help me with this? Thanks for your kindness. Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted December 4, 2018 Share Posted December 4, 2018 hi https://www.babylonjs-playground.com/#1TYWYB#188 you can use 2 renderTarget for make that 1. for render transparent area inside of black Area https://www.babylonjs-playground.com/#1TYWYB#186 2. render nan transparent meshes https://www.babylonjs-playground.com/#1TYWYB#187 then mix that with postprocess Wingnut, odda, Dieterich and 2 others 5 Quote Link to comment Share on other sites More sharing options...
odda Posted December 6, 2018 Author Share Posted December 6, 2018 Hi, Thank you so much for your answer! Works great! NasimiAsl 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.