stride3d / stride3d/stride

[PostFX] Fog blending with backgroung incorrect when MSAA enabled

Open
#1,403 0 comments 0 reactions 0 assignees View on GitHub

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:

  1. Enable a Fog PostFX
  2. Enable MSAA
  3. Set the clear color to something dark

Expected behavior
No dark edges around geometry.

Screenshots
No MSAA:
image

With MSAA 8x:
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.