Files
NeoForge/patches/com/mojang/renderpearl/api/pipeline/DepthStencilState.java.patch
T
b160270bd5 Port to 26.3 (#3403)
Co-authored-by: XFactHD <[email protected]>
Co-authored-by: Technici4n <[email protected]>
Co-authored-by: sciwhiz12 <[email protected]>
Co-authored-by: Matyrobbrt <[email protected]>
Co-authored-by: Marc Hermans <[email protected]>
Co-authored-by: Sara Freimer <[email protected]>
2026-09-16 03:08:09 +08:00

17 lines
1.0 KiB
Diff

--- a/com/mojang/renderpearl/api/pipeline/DepthStencilState.java
+++ b/com/mojang/renderpearl/api/pipeline/DepthStencilState.java
@@ -4,8 +_,12 @@
import net.neoforged.api.distmarker.OnlyIn;
@OnlyIn(Dist.CLIENT)
-public record DepthStencilState(CompareOp depthTest, boolean writeDepth, float depthBiasScaleFactor, float depthBiasConstant) {
+public record DepthStencilState(CompareOp depthTest, boolean writeDepth, float depthBiasScaleFactor, float depthBiasConstant, net.neoforged.neoforge.client.stencil.@org.jspecify.annotations.Nullable StencilTest stencilTest) {
public static final DepthStencilState DEFAULT = new DepthStencilState(CompareOp.GREATER_THAN_OR_EQUAL, true);
+
+ public DepthStencilState(CompareOp depthTest, boolean writeDepth, float depthBiasScaleFactor, float depthBiasConstant) {
+ this(depthTest, writeDepth, depthBiasScaleFactor, depthBiasConstant, null);
+ }
public DepthStencilState(CompareOp depthTest, boolean depthWrite) {
this(depthTest, depthWrite, 0.0F, 0.0F);