Improved Fog.clone & FogExp2.clone
@@ -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 );
};
@@ -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 );