Skip to content

Fix shadow artifacts by employing hardware clamping#7532

Merged
BMagnu merged 1 commit into
scp-fs2open:masterfrom
BMagnu:shadow_artifacts
Jun 17, 2026
Merged

Fix shadow artifacts by employing hardware clamping#7532
BMagnu merged 1 commit into
scp-fs2open:masterfrom
BMagnu:shadow_artifacts

Conversation

@BMagnu

@BMagnu BMagnu commented Jun 17, 2026

Copy link
Copy Markdown
Member

Some models with long, unbroken faces experience geometry artifacts if their faces get partly clamped and "squished" by the shadow cascades. This can be fixed by using hardware clamping, causing shadows to no longer be wildly incorrect in certain cases and camera angles. Extracts the idea of the last commit f6e65d8 of #7529 and packages it as a bugfix that can go into the current RC.

@BMagnu BMagnu added this to the Release 26.0 milestone Jun 17, 2026
@BMagnu BMagnu added fix A fix for bugs, not-a-bugs, and/or regressions. graphics A feature or issue related to graphics (2d and 3d) labels Jun 17, 2026

@wookieejedi wookieejedi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests confirm this fixes the issue and everything else looks as it should, thanks!

@BMagnu BMagnu merged commit 7afbed8 into scp-fs2open:master Jun 17, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix A fix for bugs, not-a-bugs, and/or regressions. graphics A feature or issue related to graphics (2d and 3d)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants