@@ -8597,7 +8597,7 @@ THREE.BufferAttribute.prototype = {
8597
8597
8598
8598
constructor: THREE.BufferAttribute,
8599
8599
8600
- get length () {
8600
+ get length() {
8601
8601
8602
8602
console.warn( 'THREE.BufferAttribute: .length has been deprecated. Please use .count.' );
8603
8603
return this.array.length;
@@ -8942,6 +8942,16 @@ THREE.Float64Attribute = function ( array, itemSize ) {
8942
8942
8943
8943
};
8944
8944
8945
+
8946
+ // Deprecated
8947
+
8948
+ THREE.DynamicBufferAttribute = function ( array, itemSize ) {
8949
+
8950
+ console.warn( 'THREE.DynamicBufferAttribute has been removed. Use new THREE.BufferAttribute().setDynamic( true ) instead.' );
8951
+ return new THREE.BufferAttribute( array, itemSize ).setDynamic( true );
8952
+
8953
+ };
8954
+
8945
8955
// File:src/core/InstancedBufferAttribute.js
8946
8956
8947
8957
/**
@@ -12610,7 +12620,7 @@ THREE.Loader.prototype = {
12610
12620
// defaults
12611
12621
12612
12622
var mtype = 'MeshLambertMaterial';
12613
- var mpars = { color: 0xeeeeee, opacity: 1.0, map: null, lightMap: null, normalMap: null, bumpMap: null, wireframe: false };
12623
+ var mpars = {};
12614
12624
12615
12625
// parameters from model file
12616
12626
@@ -12703,15 +12713,25 @@ THREE.Loader.prototype = {
12703
12713
12704
12714
}
12705
12715
12706
- if ( m.colorSpecular ) {
12716
+ if ( m.colorEmissive ) {
12707
12717
12708
- mpars.specular = rgb2hex( m.colorSpecular );
12718
+ mpars.emissive = rgb2hex( m.colorEmissive );
12709
12719
12710
12720
}
12711
12721
12712
- if ( m.colorEmissive ) {
12722
+ if ( mtype === 'MeshPhongMaterial' ) {
12713
12723
12714
- mpars.emissive = rgb2hex( m.colorEmissive );
12724
+ if ( m.colorSpecular ) {
12725
+
12726
+ mpars.specular = rgb2hex( m.colorSpecular );
12727
+
12728
+ }
12729
+
12730
+ if ( m.specularCoef ) {
12731
+
12732
+ mpars.shininess = m.specularCoef;
12733
+
12734
+ }
12715
12735
12716
12736
}
12717
12737
@@ -12730,53 +12750,51 @@ THREE.Loader.prototype = {
12730
12750
12731
12751
}
12732
12752
12733
- if ( m.specularCoef ) {
12734
-
12735
- mpars.shininess = m.specularCoef;
12753
+ // textures
12736
12754
12737
- }
12755
+ if ( texturePath ) {
12738
12756
12739
- // textures
12757
+ if ( m.mapDiffuse ) {
12740
12758
12741
- if ( m.mapDiffuse && texturePath ) {
12759
+ create_texture( mpars, 'map', m.mapDiffuse, m.mapDiffuseRepeat, m.mapDiffuseOffset, m.mapDiffuseWrap, m.mapDiffuseAnisotropy );
12742
12760
12743
- create_texture( mpars, 'map', m.mapDiffuse, m.mapDiffuseRepeat, m.mapDiffuseOffset, m.mapDiffuseWrap, m.mapDiffuseAnisotropy );
12761
+ }
12744
12762
12745
- }
12763
+ if ( m.mapLight ) {
12746
12764
12747
- if ( m.mapLight && texturePath ) {
12765
+ create_texture( mpars, 'lightMap', m.mapLight, m.mapLightRepeat, m.mapLightOffset, m.mapLightWrap, m.mapLightAnisotropy );
12748
12766
12749
- create_texture( mpars, 'lightMap', m.mapLight, m.mapLightRepeat, m.mapLightOffset, m.mapLightWrap, m.mapLightAnisotropy );
12767
+ }
12750
12768
12751
- }
12769
+ if ( m.mapAO ) {
12752
12770
12753
- if ( m.mapAO && texturePath ) {
12771
+ create_texture( mpars, 'aoMap', m.mapAO, m.mapAORepeat, m.mapAOOffset, m.mapAOWrap, m.mapAOAnisotropy );
12754
12772
12755
- create_texture( mpars, 'aoMap', m.mapAO, m.mapAORepeat, m.mapAOOffset, m.mapAOWrap, m.mapAOAnisotropy );
12773
+ }
12756
12774
12757
- }
12775
+ if ( m.mapBump ) {
12758
12776
12759
- if ( m.mapBump && texturePath ) {
12777
+ create_texture( mpars, 'bumpMap', m.mapBump, m.mapBumpRepeat, m.mapBumpOffset, m.mapBumpWrap, m.mapBumpAnisotropy );
12760
12778
12761
- create_texture( mpars, 'bumpMap', m.mapBump, m.mapBumpRepeat, m.mapBumpOffset, m.mapBumpWrap, m.mapBumpAnisotropy );
12779
+ }
12762
12780
12763
- }
12781
+ if ( m.mapNormal ) {
12764
12782
12765
- if ( m.mapNormal && texturePath ) {
12783
+ create_texture( mpars, 'normalMap', m.mapNormal, m.mapNormalRepeat, m.mapNormalOffset, m.mapNormalWrap, m.mapNormalAnisotropy );
12766
12784
12767
- create_texture( mpars, 'normalMap', m.mapNormal, m.mapNormalRepeat, m.mapNormalOffset, m.mapNormalWrap, m.mapNormalAnisotropy );
12785
+ }
12768
12786
12769
- }
12787
+ if ( m.mapSpecular ) {
12770
12788
12771
- if ( m.mapSpecular && texturePath ) {
12789
+ create_texture( mpars, 'specularMap', m.mapSpecular, m.mapSpecularRepeat, m.mapSpecularOffset, m.mapSpecularWrap, m.mapSpecularAnisotropy );
12772
12790
12773
- create_texture( mpars, 'specularMap', m.mapSpecular, m.mapSpecularRepeat, m.mapSpecularOffset, m.mapSpecularWrap, m.mapSpecularAnisotropy );
12791
+ }
12774
12792
12775
- }
12793
+ if ( m.mapAlpha ) {
12776
12794
12777
- if ( m.mapAlpha && texturePath ) {
12795
+ create_texture( mpars, 'alphaMap', m.mapAlpha, m.mapAlphaRepeat, m.mapAlphaOffset, m.mapAlphaWrap, m.mapAlphaAnisotropy );
12778
12796
12779
- create_texture( mpars, 'alphaMap', m.mapAlpha, m.mapAlphaRepeat, m.mapAlphaOffset, m.mapAlphaWrap, m.mapAlphaAnisotropy );
12797
+ }
12780
12798
12781
12799
}
12782
12800
@@ -13050,6 +13068,8 @@ THREE.JSONLoader.prototype = {
13050
13068
13051
13069
constructor: THREE.JSONLoader,
13052
13070
13071
+ // Deprecated
13072
+
13053
13073
get statusDomElement () {
13054
13074
13055
13075
if ( this._statusDomElement === undefined ) {
@@ -14977,6 +14997,27 @@ THREE.Material.prototype = {
14977
14997
14978
14998
this.dispatchEvent( { type: 'dispose' } );
14979
14999
15000
+ },
15001
+
15002
+ // Deprecated
15003
+
15004
+ get wrapAround () {
15005
+
15006
+ console.warn( 'THREE.' + this.type + ': .wrapAround has been removed.' );
15007
+
15008
+ },
15009
+
15010
+ set wrapAround ( boolean ) {
15011
+
15012
+ console.warn( 'THREE.' + this.type + ': .wrapAround has been removed.' );
15013
+
15014
+ },
15015
+
15016
+ get wrapRGB () {
15017
+
15018
+ console.warn( 'THREE.' + this.type + ': .wrapRGB has been removed.' );
15019
+ return new THREE.Color();
15020
+
14980
15021
}
14981
15022
14982
15023
};
0 commit comments