Skip to content

Commit

Permalink
Fix frustum split
Browse files Browse the repository at this point in the history
  • Loading branch information
StrandedKitty committed Oct 23, 2021
1 parent e6778a5 commit c3e3349
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/three-csm.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@

}

if ( i === breaks - 1 ) {
if ( i === breaks.length - 1 ) {

for ( let j = 0; j < 4; j ++ ) {

Expand Down
2 changes: 1 addition & 1 deletion build/three-csm.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class Frustum {

}

if ( i === breaks - 1 ) {
if ( i === breaks.length - 1 ) {

for ( let j = 0; j < 4; j ++ ) {

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "three-csm",
"version": "1.1.0",
"version": "1.1.1",
"description": "Cascaded shadow mapping (CSM) implementation for three.js",
"main": "build/three-csm.js",
"module": "build/three-csm.module.js",
Expand Down
2 changes: 1 addition & 1 deletion src/Frustum.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default class Frustum {

}

if ( i === breaks - 1 ) {
if ( i === breaks.length - 1 ) {

for ( let j = 0; j < 4; j ++ ) {

Expand Down

0 comments on commit c3e3349

Please sign in to comment.