|
@@ -2021,22 +2021,6 @@ THREE.GLTFLoader = ( function () {
|
|
|
|
|
|
if ( textureDef.name !== undefined ) texture.name = textureDef.name;
|
|
|
|
|
|
- // .format of dds texture is set in DDSLoader
|
|
|
- if ( ! textureExtensions[ EXTENSIONS.MSFT_TEXTURE_DDS ] ) {
|
|
|
-
|
|
|
- texture.format = textureDef.format !== undefined ? WEBGL_TEXTURE_FORMATS[ textureDef.format ] : THREE.RGBAFormat;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- if ( textureDef.internalFormat !== undefined && texture.format !== WEBGL_TEXTURE_FORMATS[ textureDef.internalFormat ] ) {
|
|
|
-
|
|
|
- console.warn( 'THREE.GLTFLoader: Three.js does not support texture internalFormat which is different from texture format. ' +
|
|
|
- 'internalFormat will be forced to be the same value as format.' );
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- texture.type = textureDef.type !== undefined ? WEBGL_TEXTURE_DATATYPES[ textureDef.type ] : THREE.UnsignedByteType;
|
|
|
-
|
|
|
var samplers = json.samplers || {};
|
|
|
var sampler = samplers[ textureDef.sampler ] || {};
|
|
|
|