Procházet zdrojové kódy

Editor: Do not enforce sRGB encoding for DataTexture.

Mugen87 před 5 roky
rodič
revize
60db2fd7f2
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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;