BMWPilote Posted September 28, 2018 Share Posted September 28, 2018 How to globally disable depth testing? I am rendering a 2D scene and the depth means nothing to me. I would like to control the rendering order my self. Quote Link to comment Share on other sites More sharing options...
Guest Posted September 28, 2018 Share Posted September 28, 2018 Hey! so you can set material.disableDepthWrite = true.You can automate it with: scene.onNewMaterialAddedObservable.add(function(mat) { mat.disableDepthWrite = true. }); 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.