浏览代码

addressing feedback

Emmett Lalish 5 年之前
父节点
当前提交
1ef315db88
共有 1 个文件被更改,包括 3 次插入1 次删除
  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,