Skip to content

URenderPipeline: Add missing DepthTest functions - #133

Merged
Johni0702 merged 1 commit into
masterfrom
feature/add-more-depthtest-functions
May 4, 2026
Merged

URenderPipeline: Add missing DepthTest functions#133
Johni0702 merged 1 commit into
masterfrom
feature/add-more-depthtest-functions

Conversation

@Johni0702

Copy link
Copy Markdown
Collaborator

These weren't implemented originally because Minecraft's enum didn't have them.
We did need ALWAYS though, so a hack was implemented for that one.

Minecraft did add support for all functions in 26.1. And given we already have a working workaround for older versions, there's no reason URenderPipeline shouldn't support all options.

And we'll soon have a pressing use case for GreaterOrEqual because Minecraft 26.2 uses reversed Z, so any pipeline using LessOrEqual needs to use GreaterOrEqual instead.

These weren't implemented originally because Minecraft's enum didn't
have them.
We did need `ALWAYS` though, so a hack was implemented for that one.

Minecraft did add support for all functions in 26.1. And given we
already have a working workaround for older versions, there's no reason
`URenderPipeline` shouldn't support all options.

And we'll soon have a pressing use case for `GreaterOrEqual` because
Minecraft 26.2 uses reversed Z, so any pipeline using `LessOrEqual`
needs to use `GreaterOrEqual` instead.
@Johni0702
Johni0702 force-pushed the feature/add-more-depthtest-functions branch from 15ce35a to d40a407 Compare April 28, 2026 16:54
@Johni0702
Johni0702 merged commit f0aca2e into master May 4, 2026
1 of 2 checks passed
@Johni0702
Johni0702 deleted the feature/add-more-depthtest-functions branch May 4, 2026 07:11
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.

2 participants