|
@@ -14,7 +14,15 @@ import {
|
|
NearestMipmapLinearFilter,
|
|
NearestMipmapLinearFilter,
|
|
NearestMipmapNearestFilter,
|
|
NearestMipmapNearestFilter,
|
|
PropertyBinding,
|
|
PropertyBinding,
|
|
|
|
+ RGBAIntegerFormat,
|
|
RGBAFormat,
|
|
RGBAFormat,
|
|
|
|
+ RGBEFormat,
|
|
|
|
+ RGBIntegerFormat,
|
|
|
|
+ RGBFormat,
|
|
|
|
+ RGIntegerFormat,
|
|
|
|
+ RGFormat,
|
|
|
|
+ RedIntegerFormat,
|
|
|
|
+ RedFormat,
|
|
RepeatWrapping,
|
|
RepeatWrapping,
|
|
Scene,
|
|
Scene,
|
|
Vector3
|
|
Vector3
|
|
@@ -276,13 +284,13 @@ GLTFExporter.prototype = {
|
|
switch ( format ) {
|
|
switch ( format ) {
|
|
|
|
|
|
// No conversion needed
|
|
// No conversion needed
|
|
- case THREE.RGBAIntegerFormat:
|
|
|
|
- case THREE.RGBAFormat:
|
|
|
|
- case THREE.RGBEFormat:
|
|
|
|
|
|
+ case RGBAIntegerFormat:
|
|
|
|
+ case RGBAFormat:
|
|
|
|
+ case RGBEFormat:
|
|
break;
|
|
break;
|
|
|
|
|
|
- case THREE.RGBIntegerFormat:
|
|
|
|
- case THREE.RGBFormat:
|
|
|
|
|
|
+ case RGBIntegerFormat:
|
|
|
|
+ case RGBFormat:
|
|
pixelStride = 3;
|
|
pixelStride = 3;
|
|
convertFunction = function ( pixelData ) {
|
|
convertFunction = function ( pixelData ) {
|
|
|
|
|
|
@@ -292,8 +300,8 @@ GLTFExporter.prototype = {
|
|
|
|
|
|
break;
|
|
break;
|
|
|
|
|
|
- case THREE.RGIntegerFormat:
|
|
|
|
- case THREE.RGFormat:
|
|
|
|
|
|
+ case RGIntegerFormat:
|
|
|
|
+ case RGFormat:
|
|
pixelStride = 2;
|
|
pixelStride = 2;
|
|
convertFunction = function ( pixelData ) {
|
|
convertFunction = function ( pixelData ) {
|
|
|
|
|
|
@@ -303,8 +311,8 @@ GLTFExporter.prototype = {
|
|
|
|
|
|
break;
|
|
break;
|
|
|
|
|
|
- case THREE.RedIntegerFormat:
|
|
|
|
- case THREE.RedFormat:
|
|
|
|
|
|
+ case RedIntegerFormat:
|
|
|
|
+ case RedFormat:
|
|
pixelStride = 1;
|
|
pixelStride = 1;
|
|
convertFunction = function ( pixelData ) {
|
|
convertFunction = function ( pixelData ) {
|
|
|
|
|