소스 검색

Merge pull request #13924 from 06wj/patch0

Improved Fog.clone & FogExp2.clone
Mr.doob 7 년 전
부모
커밋
eb10e6c6df
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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 );
 
 };