Explorar o código

Allow overrideColor to be changed after construction in PointLightHelper

Lewy Blue %!s(int64=8) %!d(string=hai) anos
pai
achega
0e536cfeab
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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;