Skip to content

Use special conditional survey shader instead of guest shader specialization#234

Merged
squidbus merged 1 commit into
sonicnext-dev:mainfrom
squidbus:fix-alpha
May 20, 2026
Merged

Use special conditional survey shader instead of guest shader specialization#234
squidbus merged 1 commit into
sonicnext-dev:mainfrom
squidbus:fix-alpha

Conversation

@squidbus
Copy link
Copy Markdown
Collaborator

Rendered contents during conditional survey don't matter anyway so we can just use a dummy fragment shader that writes to the survey buffer. Specializing the guest shader requires annotating for early fragment tests, which was causing issues with alpha test discard.

Fixes #232

…ization

Fixes alpha test issues from the conditional survey logic needing early fragment test.
@squidbus squidbus requested a review from IsaacMarovitz May 20, 2026 12:11
@squidbus squidbus mentioned this pull request May 20, 2026
9 tasks
@squidbus squidbus merged commit 1be1571 into sonicnext-dev:main May 20, 2026
12 checks passed
@squidbus squidbus deleted the fix-alpha branch May 21, 2026 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bad tree rendering

2 participants