Explorar o código

Merge pull request #13924 from 06wj/patch0

Improved Fog.clone & FogExp2.clone
Mr.doob %!s(int64=7) %!d(string=hai) anos
pai
achega
eb10e6c6df
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  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 );
 
 };