瀏覽代碼

Move texture.encoding configuration from BasisTextureLoader to its example

Takahiro 6 年之前
父節點
當前提交
c66f949f31
共有 2 個文件被更改,包括 1 次插入1 次删除
  1. 0 1
      examples/js/loaders/BasisTextureLoader.js
  2. 1 0
      examples/webgl_loader_texture_basis.html

+ 0 - 1
examples/js/loaders/BasisTextureLoader.js

@@ -143,7 +143,6 @@ THREE.BasisTextureLoader = class BasisTextureLoader {
 
 				texture.minFilter = THREE.LinearMipMapLinearFilter;
 				texture.magFilter = THREE.LinearFilter;
-				texture.encoding = THREE.sRGBEncoding;
 				texture.generateMipmaps = false;
 				texture.needsUpdate = true;
 

+ 1 - 0
examples/webgl_loader_texture_basis.html

@@ -74,6 +74,7 @@
 
 				loader.load( 'textures/compressed/kodim20.basis', function ( texture ) {
 
+					texture.encoding = THREE.sRGBEncoding;
 					material.map = texture;
 					material.needsUpdate = true;