@@ -225,25 +225,25 @@ Sidebar.Material = function ( editor ) {
225225
226226 container . add ( materialShininessRow ) ;
227227
228- // clearCoat
228+ // clearcoat
229229
230- var materialClearCoatRow = new UI . Row ( ) ;
231- var materialClearCoat = new UI . Number ( 1 ) . setWidth ( '60px' ) . setRange ( 0 , 1 ) . onChange ( update ) ;
230+ var materialClearcoatRow = new UI . Row ( ) ;
231+ var materialClearcoat = new UI . Number ( 1 ) . setWidth ( '60px' ) . setRange ( 0 , 1 ) . onChange ( update ) ;
232232
233- materialClearCoatRow . add ( new UI . Text ( strings . getKey ( 'sidebar/material/clearcoat' ) ) . setWidth ( '90px' ) ) ;
234- materialClearCoatRow . add ( materialClearCoat ) ;
233+ materialClearcoatRow . add ( new UI . Text ( strings . getKey ( 'sidebar/material/clearcoat' ) ) . setWidth ( '90px' ) ) ;
234+ materialClearcoatRow . add ( materialClearcoat ) ;
235235
236- container . add ( materialClearCoatRow ) ;
236+ container . add ( materialClearcoatRow ) ;
237237
238- // clearCoatRoughness
238+ // clearcoatRoughness
239239
240- var materialClearCoatRoughnessRow = new UI . Row ( ) ;
241- var materialClearCoatRoughness = new UI . Number ( 1 ) . setWidth ( '60px' ) . setRange ( 0 , 1 ) . onChange ( update ) ;
240+ var materialClearcoatRoughnessRow = new UI . Row ( ) ;
241+ var materialClearcoatRoughness = new UI . Number ( 1 ) . setWidth ( '60px' ) . setRange ( 0 , 1 ) . onChange ( update ) ;
242242
243- materialClearCoatRoughnessRow . add ( new UI . Text ( strings . getKey ( 'sidebar/material/clearcoatroughness' ) ) . setWidth ( '90px' ) ) ;
244- materialClearCoatRoughnessRow . add ( materialClearCoatRoughness ) ;
243+ materialClearcoatRoughnessRow . add ( new UI . Text ( strings . getKey ( 'sidebar/material/clearcoatroughness' ) ) . setWidth ( '90px' ) ) ;
244+ materialClearcoatRoughnessRow . add ( materialClearcoatRoughness ) ;
245245
246- container . add ( materialClearCoatRoughnessRow ) ;
246+ container . add ( materialClearcoatRoughnessRow ) ;
247247
248248 // vertex colors
249249
@@ -353,19 +353,19 @@ Sidebar.Material = function ( editor ) {
353353
354354 // clearcoat normal map
355355
356- var materialClearCoatNormalMapRow = new UI . Row ( ) ;
357- var materialClearCoatNormalMapEnabled = new UI . Checkbox ( false ) . onChange ( update ) ;
358- var materialClearCoatNormalMap = new UI . Texture ( ) . onChange ( update ) ;
359- var materialClearCoatNormalScaleX = new UI . Number ( 1 ) . setWidth ( '30px' ) . onChange ( update ) ;
360- var materialClearCoatNormalScaleY = new UI . Number ( 1 ) . setWidth ( '30px' ) . onChange ( update ) ;
356+ var materialClearcoatNormalMapRow = new UI . Row ( ) ;
357+ var materialClearcoatNormalMapEnabled = new UI . Checkbox ( false ) . onChange ( update ) ;
358+ var materialClearcoatNormalMap = new UI . Texture ( ) . onChange ( update ) ;
359+ var materialClearcoatNormalScaleX = new UI . Number ( 1 ) . setWidth ( '30px' ) . onChange ( update ) ;
360+ var materialClearcoatNormalScaleY = new UI . Number ( 1 ) . setWidth ( '30px' ) . onChange ( update ) ;
361361
362- materialClearCoatNormalMapRow . add ( new UI . Text ( strings . getKey ( 'sidebar/material/clearcoatnormalmap' ) ) . setWidth ( '90px' ) ) ;
363- materialClearCoatNormalMapRow . add ( materialClearCoatNormalMapEnabled ) ;
364- materialClearCoatNormalMapRow . add ( materialClearCoatNormalMap ) ;
365- materialClearCoatNormalMapRow . add ( materialClearCoatNormalScaleX ) ;
366- materialClearCoatNormalMapRow . add ( materialClearCoatNormalScaleY ) ;
362+ materialClearcoatNormalMapRow . add ( new UI . Text ( strings . getKey ( 'sidebar/material/clearcoatnormalmap' ) ) . setWidth ( '90px' ) ) ;
363+ materialClearcoatNormalMapRow . add ( materialClearcoatNormalMapEnabled ) ;
364+ materialClearcoatNormalMapRow . add ( materialClearcoatNormalMap ) ;
365+ materialClearcoatNormalMapRow . add ( materialClearcoatNormalScaleX ) ;
366+ materialClearcoatNormalMapRow . add ( materialClearcoatNormalScaleY ) ;
367367
368- container . add ( materialClearCoatNormalMapRow ) ;
368+ container . add ( materialClearcoatNormalMapRow ) ;
369369
370370 // displacement map
371371
@@ -654,15 +654,15 @@ Sidebar.Material = function ( editor ) {
654654
655655 }
656656
657- if ( material . clearCoat !== undefined && Math . abs ( material . clearCoat - materialClearCoat . getValue ( ) ) >= 0.01 ) {
657+ if ( material . clearcoat !== undefined && Math . abs ( material . clearcoat - materialClearcoat . getValue ( ) ) >= 0.01 ) {
658658
659- editor . execute ( new SetMaterialValueCommand ( editor , currentObject , 'clearCoat ' , materialClearCoat . getValue ( ) , currentMaterialSlot ) ) ;
659+ editor . execute ( new SetMaterialValueCommand ( editor , currentObject , 'clearcoat ' , materialClearcoat . getValue ( ) , currentMaterialSlot ) ) ;
660660
661661 }
662662
663- if ( material . clearCoatRoughness !== undefined && Math . abs ( material . clearCoatRoughness - materialClearCoatRoughness . getValue ( ) ) >= 0.01 ) {
663+ if ( material . clearcoatRoughness !== undefined && Math . abs ( material . clearcoatRoughness - materialClearcoatRoughness . getValue ( ) ) >= 0.01 ) {
664664
665- editor . execute ( new SetMaterialValueCommand ( editor , currentObject , 'clearCoatRoughness ' , materialClearCoatRoughness . getValue ( ) , currentMaterialSlot ) ) ;
665+ editor . execute ( new SetMaterialValueCommand ( editor , currentObject , 'clearcoatRoughness ' , materialClearcoatRoughness . getValue ( ) , currentMaterialSlot ) ) ;
666666
667667 }
668668
@@ -817,34 +817,34 @@ Sidebar.Material = function ( editor ) {
817817
818818 }
819819
820- if ( material . clearCoatNormalMap !== undefined ) {
820+ if ( material . clearcoatNormalMap !== undefined ) {
821821
822- var clearCoatNormalMapEnabled = materialClearCoatNormalMapEnabled . getValue ( ) === true ;
822+ var clearcoatNormalMapEnabled = materialClearcoatNormalMapEnabled . getValue ( ) === true ;
823823
824824 if ( objectHasUvs ) {
825825
826- var clearCoatNormalMap = clearCoatNormalMapEnabled ? materialClearCoatNormalMap . getValue ( ) : null ;
826+ var clearcoatNormalMap = clearcoatNormalMapEnabled ? materialClearcoatNormalMap . getValue ( ) : null ;
827827
828- if ( material . clearCoatNormalMap !== clearCoatNormalMap ) {
828+ if ( material . clearcoatNormalMap !== clearcoatNormalMap ) {
829829
830- editor . execute ( new SetMaterialMapCommand ( editor , currentObject , 'clearCoatNormalMap ' , clearCoatNormalMap , currentMaterialSlot ) ) ;
830+ editor . execute ( new SetMaterialMapCommand ( editor , currentObject , 'clearcoatNormalMap ' , clearcoatNormalMap , currentMaterialSlot ) ) ;
831831
832832 }
833833
834- if ( material . clearCoatNormalScale . x !== materialClearCoatNormalScaleX . getValue ( ) ||
835- material . clearCoatNormalScale . y !== materialClearCoatNormalScaleY . getValue ( ) ) {
834+ if ( material . clearcoatNormalScale . x !== materialClearcoatNormalScaleX . getValue ( ) ||
835+ material . clearcoatNormalScale . y !== materialClearcoatNormalScaleY . getValue ( ) ) {
836836
837837 var value = [
838- materialClearCoatNormalScaleX . getValue ( ) ,
839- materialClearCoatNormalScaleY . getValue ( )
838+ materialClearcoatNormalScaleX . getValue ( ) ,
839+ materialClearcoatNormalScaleY . getValue ( )
840840 ] ;
841- editor . execute ( new SetMaterialVectorCommand ( editor , currentObject , 'clearCoatNormalScale ' , value , currentMaterialSlot ) ) ;
841+ editor . execute ( new SetMaterialVectorCommand ( editor , currentObject , 'clearcoatNormalScale ' , value , currentMaterialSlot ) ) ;
842842
843843 }
844844
845845 } else {
846846
847- if ( clearCoatNormalMapEnabled ) textureWarning = true ;
847+ if ( clearcoatNormalMapEnabled ) textureWarning = true ;
848848
849849 }
850850
@@ -1159,8 +1159,8 @@ Sidebar.Material = function ( editor ) {
11591159 'emissive' : materialEmissiveRow ,
11601160 'specular' : materialSpecularRow ,
11611161 'shininess' : materialShininessRow ,
1162- 'clearCoat ' : materialClearCoatRow ,
1163- 'clearCoatRoughness ' : materialClearCoatRoughnessRow ,
1162+ 'clearcoat ' : materialClearcoatRow ,
1163+ 'clearcoatRoughness ' : materialClearcoatRoughnessRow ,
11641164 'vertexShader' : materialProgramRow ,
11651165 'vertexColors' : materialVertexColorsRow ,
11661166 'depthPacking' : materialDepthPackingRow ,
@@ -1287,15 +1287,15 @@ Sidebar.Material = function ( editor ) {
12871287
12881288 }
12891289
1290- if ( material . clearCoat !== undefined ) {
1290+ if ( material . clearcoat !== undefined ) {
12911291
1292- materialClearCoat . setValue ( material . clearCoat ) ;
1292+ materialClearcoat . setValue ( material . clearcoat ) ;
12931293
12941294 }
12951295
1296- if ( material . clearCoatRoughness !== undefined ) {
1296+ if ( material . clearcoatRoughness !== undefined ) {
12971297
1298- materialClearCoatRoughness . setValue ( material . clearCoatRoughness ) ;
1298+ materialClearcoatRoughness . setValue ( material . clearcoatRoughness ) ;
12991299
13001300 }
13011301
@@ -1382,18 +1382,18 @@ Sidebar.Material = function ( editor ) {
13821382
13831383 }
13841384
1385- if ( material . clearCoatNormalMap !== undefined ) {
1385+ if ( material . clearcoatNormalMap !== undefined ) {
13861386
1387- materialClearCoatNormalMapEnabled . setValue ( material . clearCoatNormalMap !== null ) ;
1387+ materialClearcoatNormalMapEnabled . setValue ( material . clearcoatNormalMap !== null ) ;
13881388
1389- if ( material . clearCoatNormalMap !== null || resetTextureSelectors ) {
1389+ if ( material . clearcoatNormalMap !== null || resetTextureSelectors ) {
13901390
1391- materialClearCoatNormalMap . setValue ( material . clearCoatNormalMap ) ;
1391+ materialClearcoatNormalMap . setValue ( material . clearcoatNormalMap ) ;
13921392
13931393 }
13941394
1395- materialClearCoatNormalScaleX . setValue ( material . clearCoatNormalScale . x ) ;
1396- materialClearCoatNormalScaleY . setValue ( material . clearCoatNormalScale . y ) ;
1395+ materialClearcoatNormalScaleX . setValue ( material . clearcoatNormalScale . x ) ;
1396+ materialClearcoatNormalScaleY . setValue ( material . clearcoatNormalScale . y ) ;
13971397
13981398 }
13991399
0 commit comments