Hello,
I have a 3D Desintegrate shader wich discard's pixles over time.
you can find my shader in your Project folder User Demos/Demo Labyrinth/media/shader/DesintegrateLight.ps (AGKv2 only)
In my demo I desintegrate all boxes at once.
Now my problem is that I want to desintegrate selected boxes.
But "SetShaderConstantByName()" is per shader not per object, so if I select one and then select another, while the old box isn't done, the old box will do it again.
I tried to draw one object in it's current state and move it to the next position where I draw it again (DrawObject()), but I had no sucess.
I could load hundreds of shaders but that might break something.
With that in mind, please help me
That image only shows the effect.. what you can't the is that I "selected" two boxes but only one gets rendered
It's the last one in the for loop for the draw process, so the real object ... maybe im doing it wrong and you can draw objects in its current state