Hello,
I'm working on a 2D game and using ObiSimpleFluidRenderer to render the fluid.
By default the fluid is rendered after all renderers in the scene. Is it possible to make it render BEFORE all renderers?
I tried to change this line in the OnPreRender() method:
to
but it did not work.
Thanks for your answer.
I'm working on a 2D game and using ObiSimpleFluidRenderer to render the fluid.
By default the fluid is rendered after all renderers in the scene. Is it possible to make it render BEFORE all renderers?
I tried to change this line in the OnPreRender() method:
Code:
currentCam.AddCommandBuffer (CameraEvent.BeforeImageEffectsOpaque, renderFluid);
to
Code:
currentCam.AddCommandBuffer (CameraEvent.BeforeForwardOpaque, renderFluid);
Thanks for your answer.