소스 검색

Allow overrideColor to be changed after construction in PointLightHelper

Lewy Blue 8 년 전
부모
커밋
0e536cfeab
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/helpers/PointLightHelper.js

+ 1 - 0
src/helpers/PointLightHelper.js

@@ -62,6 +62,7 @@ PointLightHelper.prototype.dispose = function () {
 PointLightHelper.prototype.update = function () {
 
 	if ( ! this.overrideColor ) this.material.color.copy( this.light.color );
+	else this.material.color.set( this.overrideColor );
 
 	/*
 	var d = this.light.distance;