Jump to content

[Solved] HighlightLayer addExcludedMesh depends on rendering order


Kesshi
 Share

Recommended Posts

Hi,
in this simple playground: http://www.babylonjs-playground.com/#58TGI#0 i would like that the highlight of the middle cube is rendered on top of everything.
I used addExludedMesh to exclude the other two cubes.
For the blue cube it works as expected:
blue.JPG.7c44d99d56e440f2687f5f67ebab1d40.JPG

But for the red cube the result is strange:
red.JPG.1ce1fa625295589d0b7d46a1e0ec8b26.JPG

If i create cube2 before the other cubes it is working for both cases: http://www.babylonjs-playground.com/#58TGI#1
Is it somehow possible to achive this without managing the mesh order all the time? That would be very complicated in my case.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...