Browse Source

addressing feedback

Emmett Lalish 5 years ago
parent
commit
1ef315db88
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/lights/PointLightShadow.js

+ 3 - 1
src/lights/PointLightShadow.js

@@ -58,7 +58,9 @@ PointLightShadow.prototype = Object.assign( Object.create( LightShadow.prototype
 
 	isPointLightShadow: true,
 
-	updateMatrices: function ( light, viewportIndex = 0 ) {
+	updateMatrices: function ( light, viewportIndex ) {
+
+		if ( viewportIndex === undefined ) viewportIndex = 0;
 
 		var camera = this.camera,
 			shadowMatrix = this.matrix,