Ver Fonte

improved Fog.clone & FogExp2.clone

06wj há 7 anos atrás
pai
commit
13ae7a6d55
2 ficheiros alterados com 2 adições e 2 exclusões
  1. 1 1
      src/scenes/Fog.js
  2. 1 1
      src/scenes/FogExp2.js

+ 1 - 1
src/scenes/Fog.js

@@ -20,7 +20,7 @@ Fog.prototype.isFog = true;
 
 Fog.prototype.clone = function () {
 
-	return new Fog( this.color.getHex(), this.near, this.far );
+	return new Fog( this.color, this.near, this.far );
 
 };
 

+ 1 - 1
src/scenes/FogExp2.js

@@ -18,7 +18,7 @@ FogExp2.prototype.isFogExp2 = true;
 
 FogExp2.prototype.clone = function () {
 
-	return new FogExp2( this.color.getHex(), this.density );
+	return new FogExp2( this.color, this.density );
 
 };