浏览代码

RGBELoader: Use FloatType as default texture type. (#22190)

Michael Herzog 4 年之前
父节点
当前提交
9cf50593ed
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      examples/jsm/loaders/HDRCubeTextureLoader.js
  2. 1 1
      examples/jsm/loaders/RGBELoader.js

+ 1 - 1
examples/jsm/loaders/HDRCubeTextureLoader.js

@@ -22,7 +22,7 @@ class HDRCubeTextureLoader extends Loader {
 		super( manager );
 
 		this.hdrLoader = new RGBELoader();
-		this.type = UnsignedByteType;
+		this.type = FloatType;
 
 	}
 

+ 1 - 1
examples/jsm/loaders/RGBELoader.js

@@ -21,7 +21,7 @@ class RGBELoader extends DataTextureLoader {
 
 		super( manager );
 
-		this.type = UnsignedByteType;
+		this.type = FloatType;
 
 	}