File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ for (const iteration of modelViewer) {
66 iteration . addEventListener ( 'load' , ( ) => {
77 const material = iteration . model . materials ;
88 // material[material.length-1].pbrMetallicRoughness.setBaseColorFactor([224/255, 49/255, 29/255]); //SparkFun Red: #E0311D
9- material [ material . length - 1 ] . pbrMetallicRoughness . setBaseColorFactor ( [ 224 / 255 , 0 , 0 ] ) ; // #E00000
10- material [ material . length - 1 ] . pbrMetallicRoughness . setMetallicFactor ( .8 ) ;
11- material [ material . length - 1 ] . pbrMetallicRoughness . setRoughnessFactor ( .7 ) ;
9+ material [ material . length - 2 ] . pbrMetallicRoughness . setBaseColorFactor ( [ 224 / 255 , 0 , 0 ] ) ; // #E00000
10+ material [ material . length - 2 ] . pbrMetallicRoughness . setMetallicFactor ( .8 ) ;
11+ material [ material . length - 2 ] . pbrMetallicRoughness . setRoughnessFactor ( .7 ) ;
1212 } ) ;
1313} ;
You can’t perform that action at this time.
0 commit comments