未验证 提交 48b6a3cd 编写于 作者: M Michael Herzog 提交者: GitHub

Loaders: Use HalfFloatType as default texture type. (#22265)

上级 c2fc03c3
......@@ -93,7 +93,7 @@ class EXRLoader extends DataTextureLoader {
super( manager );
this.type = FloatType;
this.type = HalfFloatType;
}
......
......@@ -22,7 +22,7 @@ class HDRCubeTextureLoader extends Loader {
super( manager );
this.hdrLoader = new RGBELoader();
this.type = FloatType;
this.type = HalfFloatType;
}
......
......@@ -21,7 +21,7 @@ class RGBELoader extends DataTextureLoader {
super( manager );
this.type = FloatType;
this.type = HalfFloatType;
}
......
......@@ -40,7 +40,6 @@
scene = new THREE.Scene();
new RGBELoader()
.setDataType( THREE.FloatType )
.setPath( 'textures/equirectangular/' )
.load( 'royal_esplanade_1k.hdr', function ( texture ) {
......
......@@ -158,7 +158,6 @@
// Load background and generate envMap
new RGBELoader()
.setDataType( THREE.FloatType )
.setPath( 'textures/equirectangular/' )
.load( 'venice_sunset_1k.hdr', function ( texture ) {
......
......@@ -42,7 +42,6 @@
scene = new THREE.Scene();
new RGBELoader()
.setDataType( THREE.FloatType )
.setPath( 'textures/equirectangular/' )
.load( 'royal_esplanade_1k.hdr', function ( texture ) {
......
......@@ -43,7 +43,6 @@
scene = new THREE.Scene();
new RGBELoader()
.setDataType( THREE.FloatType )
.setPath( 'textures/equirectangular/' )
.load( 'quarry_01_1k.hdr', function ( texture ) {
......
......@@ -48,7 +48,6 @@
camera = new THREE.OrthographicCamera( - aspect, aspect, 1, - 1, 0, 1 );
new EXRLoader()
.setDataType( THREE.FloatType )
.load( 'textures/memorial.exr', function ( texture, textureData ) {
// memorial.exr is NPOT
......
......@@ -46,7 +46,6 @@
scene.add( group );
new HDRCubeTextureLoader()
.setDataType( THREE.FloatType )
.setPath( 'textures/cube/pisaHDR/' )
.load( [ 'px.hdr', 'nx.hdr', 'py.hdr', 'ny.hdr', 'pz.hdr', 'nz.hdr' ],
function ( texture ) {
......
......@@ -113,7 +113,6 @@
} );
new RGBELoader()
.setDataType( THREE.FloatType )
.setPath( 'textures/equirectangular/' )
.load( 'royal_esplanade_1k.hdr', function ( texture ) {
......
......@@ -39,7 +39,6 @@
let mesh;
const hdrEquirect = new RGBELoader()
.setDataType( THREE.FloatType )
.setPath( 'textures/equirectangular/' )
.load( 'royal_esplanade_1k.hdr', function () {
......
......@@ -121,7 +121,6 @@
const filename = environments[ name ].filename;
new RGBELoader()
.setDataType( THREE.FloatType )
.setPath( 'textures/equirectangular/' )
.load( filename, function ( hdrEquirect ) {
......
......@@ -47,7 +47,6 @@
scene = new THREE.Scene();
new RGBELoader()
.setDataType( THREE.FloatType )
.setPath( 'textures/equirectangular/' )
.load( 'pedestrian_overpass_1k.hdr', function ( texture ) {
......
......@@ -52,7 +52,6 @@
imgTexture = null;
new RGBELoader()
.setDataType( THREE.FloatType )
.setPath( 'textures/equirectangular/' )
.load( 'pedestrian_overpass_1k.hdr', function ( texture ) {
......
......@@ -63,7 +63,6 @@
scene = new THREE.Scene();
new RGBELoader()
.setDataType( THREE.FloatType )
.setPath( 'textures/equirectangular/' )
.load( 'royal_esplanade_1k.hdr', function ( texture ) {
......
......@@ -85,7 +85,6 @@
controls.update();
const rgbeLoader = new RGBELoader()
.setDataType( THREE.FloatType )
.setPath( 'textures/equirectangular/' );
const gltfLoader = new GLTFLoader().setPath( 'models/gltf/DamagedHelmet/glTF/' );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册