Browse Source

Updated examples builds.

Mr.doob 3 years ago
parent
commit
3e678a3954
2 changed files with 0 additions and 23 deletions
  1. 0 8
      examples/js/loaders/HDRCubeTextureLoader.js
  2. 0 15
      examples/js/loaders/RGBELoader.js

+ 0 - 8
examples/js/loaders/HDRCubeTextureLoader.js

@@ -28,14 +28,6 @@
 
 			switch ( texture.type ) {
 
-				case THREE.UnsignedByteType:
-					texture.encoding = THREE.RGBEEncoding;
-					texture.format = THREE.RGBAFormat;
-					texture.minFilter = THREE.NearestFilter;
-					texture.magFilter = THREE.NearestFilter;
-					texture.generateMipmaps = false;
-					break;
-
 				case THREE.FloatType:
 					texture.encoding = THREE.LinearEncoding;
 					texture.format = THREE.RGBFormat;

+ 0 - 15
examples/js/loaders/RGBELoader.js

@@ -374,13 +374,6 @@
 
 					switch ( this.type ) {
 
-						case THREE.UnsignedByteType:
-							data = image_rgba_data;
-							format = THREE.RGBEFormat; // handled as THREE.RGBAFormat in shaders
-
-							type = THREE.UnsignedByteType;
-							break;
-
 						case THREE.FloatType:
 							numElements = image_rgba_data.length / 4;
 							const floatArray = new Float32Array( numElements * 3 );
@@ -449,14 +442,6 @@
 
 				switch ( texture.type ) {
 
-					case THREE.UnsignedByteType:
-						texture.encoding = THREE.RGBEEncoding;
-						texture.minFilter = THREE.NearestFilter;
-						texture.magFilter = THREE.NearestFilter;
-						texture.generateMipmaps = false;
-						texture.flipY = true;
-						break;
-
 					case THREE.FloatType:
 						texture.encoding = THREE.LinearEncoding;
 						texture.minFilter = THREE.LinearFilter;