|
@@ -16799,6 +16799,8 @@ function denormalize( morph, attribute ) {
|
|
const array = attribute.isInterleavedBufferAttribute ? attribute.data.array : attribute.array;
|
|
const array = attribute.isInterleavedBufferAttribute ? attribute.data.array : attribute.array;
|
|
|
|
|
|
if ( array instanceof Int8Array ) denominator = 127;
|
|
if ( array instanceof Int8Array ) denominator = 127;
|
|
|
|
+ else if ( array instanceof Uint8Array ) denominator = 255;
|
|
|
|
+ else if ( array instanceof Uint16Array ) denominator = 65535;
|
|
else if ( array instanceof Int16Array ) denominator = 32767;
|
|
else if ( array instanceof Int16Array ) denominator = 32767;
|
|
else if ( array instanceof Int32Array ) denominator = 2147483647;
|
|
else if ( array instanceof Int32Array ) denominator = 2147483647;
|
|
else console.error( 'THREE.WebGLMorphtargets: Unsupported morph attribute data type: ', array );
|
|
else console.error( 'THREE.WebGLMorphtargets: Unsupported morph attribute data type: ', array );
|
|
@@ -28392,7 +28394,23 @@ function WebGLRenderer( parameters = {} ) {
|
|
|
|
|
|
this.initTexture = function ( texture ) {
|
|
this.initTexture = function ( texture ) {
|
|
|
|
|
|
- textures.setTexture2D( texture, 0 );
|
|
|
|
|
|
+ if ( texture.isCubeTexture ) {
|
|
|
|
+
|
|
|
|
+ textures.setTextureCube( texture, 0 );
|
|
|
|
+
|
|
|
|
+ } else if ( texture.isData3DTexture ) {
|
|
|
|
+
|
|
|
|
+ textures.setTexture3D( texture, 0 );
|
|
|
|
+
|
|
|
|
+ } else if ( texture.isDataArrayTexture ) {
|
|
|
|
+
|
|
|
|
+ textures.setTexture2DArray( texture, 0 );
|
|
|
|
+
|
|
|
|
+ } else {
|
|
|
|
+
|
|
|
|
+ textures.setTexture2D( texture, 0 );
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
|
|
state.unbindTexture();
|
|
state.unbindTexture();
|
|
|
|
|