From c9e71e26f2e6f92d13a984dea6e1bcbd904730bc Mon Sep 17 00:00:00 2001 From: cutealien Date: Wed, 22 Nov 2023 16:59:24 +0000 Subject: [PATCH] Switch default transparency sorting back from ETNS_PLANE_CENTER to ETNS_CENTER While there are some cases this fixes, like MartinVee's nice example for orthographic camera at https://irrlicht.sourceforge.io/forum/viewtopic.php?t=51598 it seemed to cause more problems in complex 3d scenes with perspective cameras. Well anyway - both options are available now for those which need it. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6574 dfc29bdd-3216-0410-991c-e03cc46cb475 --- include/ISceneManager.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/ISceneManager.h b/include/ISceneManager.h index 71248ed1..9383f3f7 100644 --- a/include/ISceneManager.h +++ b/include/ISceneManager.h @@ -124,11 +124,12 @@ namespace scene ETNS_PLANE_ORIGIN, //! Distance from node center to camera plane + //! With orthographic cameras there's a high chance you might prefer this one ETNS_PLANE_CENTER, //! Default sorting Irrlicht uses currently //! This may change in the future - ETNS_DEFAULT = ETNS_PLANE_CENTER + ETNS_DEFAULT = ETNS_CENTER }; class IAnimatedMesh;