Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  Loosing Shadow....
#2
(26-02-2019, 04:13 PM)gabibouty Wrote: Hello everyone, I have a small question ... I could not have shadows of my fluid. After fex times of tests, I did a final test in a demo scene, and there, I saw that if we simply duplicate the original emitter, we lost  the shadow of the fluid there too ! Someone has a solution?

Thanks !

Fluids only support shadowing from directional lights. There should be a ShadowmapExposer component on each light you want to support, and you should provide a reference to the ObiParticleRenderer there. So if you simply duplicate a renderer and do not add it to the exposer, it will have no shadows.

Note that fluid rendering is done using screen-space ellipsoid splatting (state of the art for realtime fluid rendering), so it has its own lightning pipeline, done outside of Unity's built-in one. That's why this process is required to get shadows working on it: the exposer component "taps" into Unity's pipeline, grabs the shadow map and makes it available to Obi's fluid rendering pipeline.
Reply


Messages In This Thread
Loosing Shadow.... - by gabibouty - 26-02-2019, 04:13 PM
RE: Loosing Shadow.... - by josemendez - 26-02-2019, 08:54 PM
RE: Loosing Shadow.... - by gabibouty - 27-02-2019, 05:59 AM