Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,14 @@ protected GeometryList getOccludersToRender(int shadowMapIndex, GeometryList sha
ShadowUtil.updateFrustumPoints(viewPort.getCamera(), splitsArray[shadowMapIndex], splitsArray[shadowMapIndex + 1], 1.0f, points);

//Updating shadow cam with current split frusta
if (lightReceivers.size()==0) {
if (lightReceivers.size()==0)

// Fix: prevent null viewport or null scene list
if (viewPort == null || viewPort.getScenes() == null) {
Copy link
Contributor

@codex128 codex128 Dec 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not possible for viewPort to be null at any point after processor initialization, and viewPort.getScenes() is never null.

Also, this code doesn't work. You inserted the if statement between another if's condition and body.

return shadowMapOccluders;
}

{
for (Spatial scene : viewPort.getScenes()) {
ShadowUtil.getGeometriesInCamFrustum(scene, viewPort.getCamera(), RenderQueue.ShadowMode.Receive, lightReceivers);
}
Expand Down
Loading