Sfoglia il codice sorgente

addressing feedback

Emmett Lalish 5 anni fa
parent
commit
1ef315db88
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  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,
 	isPointLightShadow: true,
 
 
-	updateMatrices: function ( light, viewportIndex = 0 ) {
+	updateMatrices: function ( light, viewportIndex ) {
+
+		if ( viewportIndex === undefined ) viewportIndex = 0;
 
 
 		var camera = this.camera,
 		var camera = this.camera,
 			shadowMatrix = this.matrix,
 			shadowMatrix = this.matrix,