From 8985248142753aded699f7f71267d3336ba495d5 Mon Sep 17 00:00:00 2001 From: cutealien Date: Wed, 22 Nov 2023 17:15:03 +0000 Subject: [PATCH] Add comment about transparency sorting. Sometimes you only think about better implementations when the work is done *sigh* Can get back to it when we add custom sorting for solid nodes some day (another very old open feature request...) git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6575 dfc29bdd-3216-0410-991c-e03cc46cb475 --- source/Irrlicht/CSceneManager.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/Irrlicht/CSceneManager.h b/source/Irrlicht/CSceneManager.h index 36be8029..8aedb5ec 100644 --- a/source/Irrlicht/CSceneManager.h +++ b/source/Irrlicht/CSceneManager.h @@ -672,6 +672,11 @@ namespace scene //! Algorithm used to sort transparent nodes E_TRANSPARENT_NODE_SORTING TransparentNodeSorting; //! Pointer to the actual algorithm to get the distance + // NOTE: If we ever allow users to add sorting functions in the public interface + // then maybe we should not make the distance function a callback + // but sorting the full array at once. That could give more flexibility, + // like easier sorting based on several parameters. + // I thought about that approach too late and not going back to it for now. f32 (*funcTransparentNodeDistance)(const ISceneNode* node, const core::vector3df& cameraPos, const core::vector3df& cameraViewNormalized); //! An optional callbacks manager to allow the user app finer control