Skip to content

Commit

Permalink
fix exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
mgsx-dev committed Jun 16, 2023
1 parent 38e4381 commit 7d70839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gltf/src/net/mgsx/gltf/scene3d/scene/CascadeShadowMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public void setCascades(Camera sceneCamera, DirectionalShadowLight base, float m
*/
public void setCascades(Camera sceneCamera, DirectionalShadowLight base, float minLlightDepth, FloatArray splitRates){
if(splitRates.size != cascadeCount+2){
throw new IllegalArgumentException("Invalid splitRates, expected " + cascadeCount+2 + " items.");
throw new IllegalArgumentException("Invalid splitRates, expected " + (cascadeCount+2) + " items.");
}

syncExtraCascades(base);
Expand Down

0 comments on commit 7d70839

Please sign in to comment.