Commit 8b2c5d5
[VFX] Fix Volumetric Fog Output with multiple outputs
When using multiple Volumetric Fog Outputs in a single system, the buffers `outputBuffer` and `maxSliceCount` were shared between the outputs, which was incorrect. It was leading to GPU hangs on some platforms, and to an excessive amount of slices being drawn on all platforms.
This PR makes sure that each output is working on its own set of buffers.
Renderdoc screenshots of the draw calls:
- Before : the quad count is the same of both draw calls and is the sum of the two required quad count for each output ->Wrong

- After : the quad count is different for each draw call and matches the number of required slices for each output -> Correct
1 parent 6067db0 commit 8b2c5d5
File tree
2 files changed
+25
-2
lines changed- Packages/com.unity.visualeffectgraph
- Editor/Data
- Runtime/Utilities/SDF
2 files changed
+25
-2
lines changedLines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
998 | 998 | | |
999 | 999 | | |
1000 | 1000 | | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
1001 | 1020 | | |
1002 | 1021 | | |
1003 | 1022 | | |
| |||
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | | - | |
353 | | - | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
354 | 358 | | |
355 | 359 | | |
356 | 360 | | |
| |||
0 commit comments