[PostFX] Fog blending with backgroung incorrect when MSAA enabled
Open
Nobody has claimed this yet.
bug
- Dominant language
- C#
- Stars
- 7.8k
- Forks
- 1.2k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 49
Description
Describe the bug
Fog has blending issues when MSAA is enabled. The reason might be that the depth buffer is a multi-sample texture.
To Reproduce
Steps to reproduce the behavior:
- Enable a Fog PostFX
- Enable MSAA
- Set the clear color to something dark
Expected behavior
No dark edges around geometry.
Screenshots
No MSAA:

With MSAA 8x:

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with a Fog PostFX, MSAA enabled, and a dark clear color, comparing no MSAA with MSAA 8x. Investigate the depth buffer's multi-sample handling during fog blending; done means geometry no longer has dark edges when MSAA is enabled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- computer-graphics, game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100