Jump to content

[Solved] HighlightLayer addExcludedMesh depends on rendering order


Recommended Posts

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:

But for the red cube the result is strange:

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.

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.


  • Recently Browsing   0 members

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