Skip to content

Commit 7748f07

Browse files
author
Don McCurdy
committed
GLTFLoader: Rename EXT_texture_transform to KHR_texture_transform.
1 parent 875e4d5 commit 7748f07

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/js/loaders/GLTFLoader.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ THREE.GLTFLoader = ( function () {
146146

147147
}
148148

149-
if ( json.extensionsUsed.indexOf( EXTENSIONS.EXT_TEXTURE_TRANSFORM ) >= 0 ) {
149+
if ( json.extensionsUsed.indexOf( EXTENSIONS.KHR_TEXTURE_TRANSFORM ) >= 0 ) {
150150

151-
extensions[ EXTENSIONS.EXT_TEXTURE_TRANSFORM ] = new GLTFTextureTransformExtension( json );
151+
extensions[ EXTENSIONS.KHR_TEXTURE_TRANSFORM ] = new GLTFTextureTransformExtension( json );
152152

153153
}
154154

@@ -230,7 +230,7 @@ THREE.GLTFLoader = ( function () {
230230
KHR_LIGHTS: 'KHR_lights',
231231
KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS: 'KHR_materials_pbrSpecularGlossiness',
232232
KHR_MATERIALS_UNLIT: 'KHR_materials_unlit',
233-
EXT_TEXTURE_TRANSFORM: 'EXT_texture_transform'
233+
KHR_TEXTURE_TRANSFORM: 'KHR_texture_transform'
234234
};
235235

236236
/**
@@ -486,7 +486,7 @@ THREE.GLTFLoader = ( function () {
486486
*/
487487
function GLTFTextureTransformExtension ( json ) {
488488

489-
this.name = EXTENSIONS.EXT_TEXTURE_TRANSFORM;
489+
this.name = EXTENSIONS.KHR_TEXTURE_TRANSFORM;
490490

491491
}
492492

@@ -1886,9 +1886,9 @@ THREE.GLTFLoader = ( function () {
18861886

18871887
return this.getDependency( 'texture', mapDef.index ).then( function ( texture ) {
18881888

1889-
if ( parser.extensions[ EXTENSIONS.EXT_TEXTURE_TRANSFORM ] ) {
1889+
if ( parser.extensions[ EXTENSIONS.KHR_TEXTURE_TRANSFORM ] ) {
18901890

1891-
texture = parser.extensions[ EXTENSIONS.EXT_TEXTURE_TRANSFORM ].extendTexture( texture, mapDef );
1891+
texture = parser.extensions[ EXTENSIONS.KHR_TEXTURE_TRANSFORM ].extendTexture( texture, mapDef );
18921892

18931893
}
18941894

0 commit comments

Comments
 (0)