gelly-gmod / gelly

Library to integrate fluids into a game engine
GNU General Public License v3.0
18 stars 3 forks source link

Eliminate the thickness splatting pass #88

Closed yogwoggf closed 2 months ago

yogwoggf commented 2 months ago

Context

Our renderer currently has one pass for ellipsoid splatting, another for thickness. We should be able to eliminate the other pass by using a RWTexture2D to manually accumulate thickness pixels. In addition, it'd also fix the current desync between isotropic and anisotropic rendering models used in Gelly. Finally, it would also respect the variance filter. There is a lot to win from this ticket--although performance of this needs to be evaluated.

We don't splat anything else than depth in the ellipsoid pass, so we're probably okay if we attach another texture--especially given we wont use it in MRT mode.

Scope

Acceptance Criteria

Other

yogwoggf commented 2 months ago

Timing sample is about a 1.5x speedup, 1.3-1.4x with more blur passes. Nice!