We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 12e7e07 + d51275f commit 1cc85a9Copy full SHA for 1cc85a9
examples/js/loaders/GLTFLoader.js
@@ -243,7 +243,7 @@ THREE.GLTFLoader = ( function () {
243
*/
244
function GLTFTextureDDSExtension() {
245
246
- if (!THREE.DDSLoader) {
+ if ( ! THREE.DDSLoader ) {
247
248
throw new Error( 'THREE.GLTFLoader: Attempting to load .dds texture without importing THREE.DDSLoader' );
249
@@ -1906,6 +1906,7 @@ THREE.GLTFLoader = ( function () {
1906
1907
if ( textureDef.name !== undefined ) texture.name = textureDef.name;
1908
1909
+ // .format of dds texture is set in DDSLoader
1910
if ( ! textureExtensions[ EXTENSIONS.MSFT_TEXTURE_DDS ] ) {
1911
1912
texture.format = textureDef.format !== undefined ? WEBGL_TEXTURE_FORMATS[ textureDef.format ] : THREE.RGBAFormat;
0 commit comments