Ver código fonte

Merge pull request #20214 from Mugen87/dev53

Editor: Do not enforce sRGB encoding for DataTexture.
Mr.doob 4 anos atrás
pai
commit
c6d62fa599
1 arquivos alterados com 1 adições e 1 exclusões
  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;