(04-06-2025, 08:37 AM)PlatonSk Wrote: Hello! Transparent fluid is flickering after i change solver scale from 1 to 6. My Thickness in pass was 30 and after i changed to 5, flickering go away. But how still use thickness 30 and disappeared flickering? I need thick 30 for mixing fluids.
Unity 6 is using.
Link with settings screenshots and video with flickering.
https://drive.google.com/drive/folders/1...RDrB2Trsvr
Hi,
This is likely a floating point precision issue. Screen-space fluid thickness is stored in a 32-bit floating point render texture. Using large thicknesses (x6 global scale, then x30 thickness scale) is likely hitting the precision limit of the texture, so thickness is being heavily quantized giving rise to jitter.
This is similar to what happens to vertex positions when you move objects very far away from the origin of the scene, or what happens to shadow maps when you push the camera's far clip plane too far. The only solution is to re-think your scene in order to reduce thickness. A simple option would be to use opaque fluid rendering instead (thickness=30 will yield almost opaque fluid anyway, minus diffuse shading).
kind regards,