소스 검색

Merge pull request #20214 from Mugen87/dev53

Editor: Do not enforce sRGB encoding for DataTexture.
Mr.doob 5 년 전
부모
커밋
c6d62fa599
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      editor/js/Sidebar.Material.js

+ 1 - 1
editor/js/Sidebar.Material.js

@@ -1186,7 +1186,7 @@ function SidebarMaterial( editor ) {
 
 		if ( texture !== null ) {
 
-			if ( texture.encoding !== THREE.sRGBEncoding ) {
+			if ( texture.isDataTexture !== true && texture.encoding !== THREE.sRGBEncoding ) {
 
 				texture.encoding = THREE.sRGBEncoding;
 				var object = currentObject;