BlackMojito Posted March 8, 2018 Share Posted March 8, 2018 Hi Folks, I am looking for the source code about sorting transparent meshes by depth. Where can I find it? I cannot find it.. Quote Link to comment Share on other sites More sharing options...
jerome Posted March 8, 2018 Share Posted March 8, 2018 What do you mean ? The code to sort different transparent meshes from each other ? or to sort the facets of a transparent given mesh ? Quote Link to comment Share on other sites More sharing options...
RaananW Posted March 8, 2018 Share Posted March 8, 2018 Could that be helpful? http://doc.babylonjs.com/resources/transparency_and_how_meshes_are_rendered#general-order Quote Link to comment Share on other sites More sharing options...
BlackMojito Posted March 9, 2018 Author Share Posted March 9, 2018 17 hours ago, RaananW said: Could that be helpful? http://doc.babylonjs.com/resources/transparency_and_how_meshes_are_rendered#general-order Yes Boss!. "Alpha blended meshes, sorted by depth (= distance to camera)" is what I would like to find the source code about. In which function/class can I find the related source code on github? Quote Link to comment Share on other sites More sharing options...
RaananW Posted March 9, 2018 Share Posted March 9, 2018 I think you will find the rendering group class interesting: https://github.com/BabylonJS/Babylon.js/blob/master/src/Rendering/babylon.renderingGroup.ts 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.