# Fluid renderer with ssr

**URL:** <https://forum.babylonjs.com/t/fluid-renderer-with-ssr/49334>\
**Category:** Questions\
**Created:** [April 4, 2024, 1:43am UTC](https://forum.babylonjs.com/t/fluid-renderer-with-ssr/49334 "2024-04-04T01:43:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![poshuk](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/poshuk/32/38718_2.png) [@poshuk](https://forum.babylonjs.com/u/poshuk)\
**Post date:** [April 4, 2024, 1:43am UTC](https://forum.babylonjs.com/t/fluid-renderer-with-ssr/49334/1 "2024-04-04T01:43:45Z")

</div>

Hello,  
I am trying to use fluid renderer with ssr rendering pipeline but there is some layering issue and it works perfectly fine without ssr rp. Anyone know how to fix this?

Fluid without ssr rp: [https://playground.babylonjs.com/#544N0Q#105](https://playground.babylonjs.com/#544N0Q#105)

Fluid with ssr rp: [https://playground.babylonjs.com/#544N0Q#106](https://playground.babylonjs.com/#544N0Q#106)

Thanks

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [April 4, 2024, 11:58am UTC](https://forum.babylonjs.com/t/fluid-renderer-with-ssr/49334/2 "2024-04-04T11:58:02Z")

</div>

It kinds of work with the geometry buffer renderer instead of the prepass renderer:

> **[Babylon.js Playground](https://playground.babylonjs.com/#544N0Q%23108)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

However, transparent objects (like particles) have no thickness and don’t write to the depth buffer, so SSR can’t work correctly. It’s possible to fake things a bit by adding an object that writes to the depth buffer behind the particles, like the wall I added in the PG.

The calculated depths won’t be the right ones for the particles, though, they will all have the same value (the one from the wall). That’s why the reflection of the particles are all in a flat line on the ground (it’s more visible when you rotate the camera).

In a more complex scene with different objects behind the particles which are at different depths, these artifacts are less visible. Some games simply rely on occluders existing behind the particles, see the note in [Screen Space Reflections in Killing Floor 2](https://sakibsaikia.github.io/graphics/2016/12/26/Screen-Space-Reflection-in-Killing-Floor-2.html#deferred-color-lookup) for eg.

---

<div class="post-metadata">

**Author:** ![poshuk](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/poshuk/32/38718_2.png) [@poshuk](https://forum.babylonjs.com/u/poshuk)\
**Post date:** [April 4, 2024, 1:23pm UTC](https://forum.babylonjs.com/t/fluid-renderer-with-ssr/49334/3 "2024-04-04T13:23:34Z")

</div>

Thanks @Evgeni_Popov , you are the MVP

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [April 4, 2024, 3:06pm UTC](https://forum.babylonjs.com/t/fluid-renderer-with-ssr/49334/4 "2024-04-04T15:06:41Z")

</div>

He definitely is ;D
