Skip to content

Commit bd2dd61

Browse files
committed
fix: enable depth clipping by default
1 parent 58fe6cc commit bd2dd61

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Engine/Source/RHI/Include/RHI/Pipeline.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,15 @@ namespace RHI {
9393
IndexFormat stripIndexFormat;
9494
FrontFace frontFace;
9595
CullMode cullMode;
96-
bool depthClip = false;
96+
bool depthClip = true;
9797

9898
explicit PrimitiveState(
9999
PrimitiveTopologyType inTopologyType = PrimitiveTopologyType::triangle,
100100
FillMode inFillMode = FillMode::solid,
101101
IndexFormat inStripIndexFormat = IndexFormat::uint16,
102102
FrontFace inFrontFace = FrontFace::ccw,
103103
CullMode inCullMode = CullMode::back,
104-
bool inDepthClip = false);
104+
bool inDepthClip = true);
105105

106106
PrimitiveState& SetTopologyType(PrimitiveTopologyType inTopologyType);
107107
PrimitiveState& SetFillMode(FillMode inFillMode);

0 commit comments

Comments
 (0)