2
0
Эх сурвалжийг харах

improved Fog.clone & FogExp2.clone

06wj 7 жил өмнө
parent
commit
13ae7a6d55

+ 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 );
 
 };