Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Render ObiSimpleFluidRenderer before everything
#1
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:

Code:
 currentCam.AddCommandBuffer (CameraEvent.BeforeImageEffectsOpaque, renderFluid);

to

Code:
currentCam.AddCommandBuffer (CameraEvent.BeforeForwardOpaque, renderFluid);
but it did not work.

Thanks for your answer.
Reply


Messages In This Thread
Render ObiSimpleFluidRenderer before everything - by rosedev - 19-09-2018, 10:04 PM