|
@@ -16068,7 +16068,7 @@ function WebGLBindingStates( gl, extensions, attributes, capabilities ) {
|
|
|
|
|
|
if ( capabilities.isWebGL2 === true && ( type === 5124 || type === 5125 ) ) {
|
|
|
|
|
|
- gl.vertexAttribIPointer( index, size, type, normalized, stride, offset );
|
|
|
+ gl.vertexAttribIPointer( index, size, type, stride, offset );
|
|
|
|
|
|
} else {
|
|
|
|
|
@@ -24265,7 +24265,13 @@ function WebGLMaterials( properties ) {
|
|
|
uniforms.reflectivity.value = material.reflectivity;
|
|
|
uniforms.refractionRatio.value = material.refractionRatio;
|
|
|
|
|
|
- uniforms.maxMipLevel.value = properties.get( envMap ).__maxMipLevel;
|
|
|
+ var maxMipLevel = properties.get( envMap ).__maxMipLevel;
|
|
|
+
|
|
|
+ if ( maxMipLevel !== undefined ) {
|
|
|
+
|
|
|
+ uniforms.maxMipLevel.value = maxMipLevel;
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|
|
@@ -27036,6 +27042,16 @@ Object.defineProperties( InterleavedBufferAttribute.prototype, {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ },
|
|
|
+
|
|
|
+ needsUpdate: {
|
|
|
+
|
|
|
+ set: function ( value ) {
|
|
|
+
|
|
|
+ this.data.needsUpdate = value;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
} );
|
|
@@ -40648,7 +40664,6 @@ MaterialLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
|
|
|
if ( json.side !== undefined ) material.side = json.side;
|
|
|
if ( json.opacity !== undefined ) material.opacity = json.opacity;
|
|
|
if ( json.transparent !== undefined ) material.transparent = json.transparent;
|
|
|
- if ( json.transparency !== undefined ) material.transparency = json.transparency;
|
|
|
if ( json.alphaTest !== undefined ) material.alphaTest = json.alphaTest;
|
|
|
if ( json.depthTest !== undefined ) material.depthTest = json.depthTest;
|
|
|
if ( json.depthWrite !== undefined ) material.depthWrite = json.depthWrite;
|
|
@@ -51039,6 +51054,25 @@ Object.defineProperties( MeshPhongMaterial.prototype, {
|
|
|
|
|
|
} );
|
|
|
|
|
|
+Object.defineProperties( MeshPhysicalMaterial.prototype, {
|
|
|
+
|
|
|
+ transparency: {
|
|
|
+ get: function () {
|
|
|
+
|
|
|
+ console.warn( 'THREE.MeshPhysicalMaterial: .transparency has been renamed to .transmission.' );
|
|
|
+ return this.transmission;
|
|
|
+
|
|
|
+ },
|
|
|
+ set: function ( value ) {
|
|
|
+
|
|
|
+ console.warn( 'THREE.MeshPhysicalMaterial: .transparency has been renamed to .transmission.' );
|
|
|
+ this.transmission = value;
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+} );
|
|
|
+
|
|
|
Object.defineProperties( ShaderMaterial.prototype, {
|
|
|
|
|
|
derivatives: {
|