Skip to content

Commit d0c5db3

Browse files
committed
fix: Broken shadow culling
1 parent 84f5b03 commit d0c5db3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/main/java/com/ventooth/swansong/shader/ShaderEngine.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -866,13 +866,9 @@ private static void renderShadowMap() {
866866
return;
867867
}
868868

869-
if (frustrum == null) {
869+
if (frustrum == null || ch == null) {
870870
frustrum = new Frustrum();
871-
}
872-
if (ch == null) {
873871
ch = new ClippingHelperShadow();
874-
}
875-
if (frustrum.clippingHelper == null) {
876872
frustrum.clippingHelper = ch;
877873
}
878874

0 commit comments

Comments
 (0)