Page 1 of 1

Support for insertTargetPass

Posted: Sun Sep 09, 2018 10:37 am
by Lax
Hi,

would it be possible to introduce a new function "insertTargetPass" in "OgreCompositorNodeDef.h"?
At this time, its only possible to add a pass at the end of the list. But I need to insert a pass at a specifig index, because the pass order is important.

e.g.

Code: Select all

CompositorTargetDef* insertTargetPass( const String &renderTargetName, uint32 insertIndex, uint32 rtIndex=0);
Best regards
Lax

Re: Support for insertTargetPass

Posted: Mon Sep 10, 2018 10:01 pm
by dark_sylinc
I'm afraid that won't be possible, or at least it isn't that easy.

mTargetPasses purposedly does not abide to the rule of 3, which is why calling setNumTargetPass is mandatory.

Allowing to insert in the middle would imply moving passes around, and for that to work requires the classes to abide to the rule of 3.