浏览代码

GLTFExporter - Removed RG, Red and RGBE formats

Max Godefroy (Clyde) 4 年之前
父节点
当前提交
e9cc1a063e
共有 2 个文件被更改,包括 0 次插入51 次删除
  1. 0 23
      examples/js/exporters/GLTFExporter.js
  2. 0 28
      examples/jsm/exporters/GLTFExporter.js

+ 0 - 23
examples/js/exporters/GLTFExporter.js

@@ -258,7 +258,6 @@ THREE.GLTFExporter.prototype = {
 				// No conversion needed
 				// No conversion needed
 				case THREE.RGBAIntegerFormat:
 				case THREE.RGBAIntegerFormat:
 				case THREE.RGBAFormat:
 				case THREE.RGBAFormat:
-				case THREE.RGBEFormat:
 					break;
 					break;
 
 
 				case THREE.RGBIntegerFormat:
 				case THREE.RGBIntegerFormat:
@@ -272,28 +271,6 @@ THREE.GLTFExporter.prototype = {
 
 
 					break;
 					break;
 
 
-				case THREE.RGIntegerFormat:
-				case THREE.RGFormat:
-					pixelStride = 2;
-					convertFunction = function ( pixelData ) {
-
-						return [ pixelData[ 0 ], pixelData[ 1 ], 0, 255 ];
-
-					};
-
-					break;
-
-				case THREE.RedIntegerFormat:
-				case THREE.RedFormat:
-					pixelStride = 1;
-					convertFunction = function ( pixelData ) {
-
-						return [ pixelData[ 0 ], pixelData[ 1 ], pixelData[ 2 ], 255 ];
-
-					};
-
-					break;
-
 				default:
 				default:
 					throw "Format not supported";
 					throw "Format not supported";
 
 

+ 0 - 28
examples/jsm/exporters/GLTFExporter.js

@@ -16,13 +16,8 @@ import {
 	PropertyBinding,
 	PropertyBinding,
 	RGBAIntegerFormat,
 	RGBAIntegerFormat,
 	RGBAFormat,
 	RGBAFormat,
-	RGBEFormat,
 	RGBIntegerFormat,
 	RGBIntegerFormat,
 	RGBFormat,
 	RGBFormat,
-	RGIntegerFormat,
-	RGFormat,
-	RedIntegerFormat,
-	RedFormat,
 	RepeatWrapping,
 	RepeatWrapping,
 	Scene,
 	Scene,
 	Vector3
 	Vector3
@@ -287,7 +282,6 @@ GLTFExporter.prototype = {
 				// No conversion needed
 				// No conversion needed
 				case RGBAIntegerFormat:
 				case RGBAIntegerFormat:
 				case RGBAFormat:
 				case RGBAFormat:
-				case RGBEFormat:
 					break;
 					break;
 
 
 				case RGBIntegerFormat:
 				case RGBIntegerFormat:
@@ -301,28 +295,6 @@ GLTFExporter.prototype = {
 
 
 					break;
 					break;
 
 
-				case RGIntegerFormat:
-				case RGFormat:
-					pixelStride = 2;
-					convertFunction = function ( pixelData ) {
-
-						return [ pixelData[ 0 ], pixelData[ 1 ], 0, 255 ];
-
-					};
-
-					break;
-
-				case RedIntegerFormat:
-				case RedFormat:
-					pixelStride = 1;
-					convertFunction = function ( pixelData ) {
-
-						return [ pixelData[ 0 ], pixelData[ 1 ], pixelData[ 2 ], 255 ];
-
-					};
-
-					break;
-
 				default:
 				default:
 					throw "Format not supported";
 					throw "Format not supported";