Node material breaks with useRightHandedSystem

Hi everyone!

I’m crafting a cool shader for my game, that is supposed to indicate range of a weapon. At the moment it looks like this:

Unfortunately my game uses the right handed system, and I had some difficulties inserting it. I then realized that the shader seems to not work at all with right handed system turned on! The sphere should be in a correct position, but it is invisible. What gives?

Here is the PG with right handedness turned on: Babylon.js Playground
Thanks for all the help already! <3

Hi, when you are using right handed system depth is inverted, after “SceneDepth” node you need to add “Abs” node: Babylon.js Playground

2 Likes

Thank you so much, that fixed it! :star_struck: