Skip to content

Commit

Permalink
Set .metalness to zero to model glass
Browse files Browse the repository at this point in the history
  • Loading branch information
WestLangley committed Feb 27, 2020
1 parent 5961c0b commit 547c916
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/webgl_materials_car.html
Original file line number Diff line number Diff line change
Expand Up @@ -192,21 +192,21 @@
} ),
new THREE.MeshStandardMaterial( {
color: 0xffffff, metalness: 1.0, roughness: 0.2, name: 'metallic'
} ),
} )

],

glass: [

new THREE.MeshPhysicalMaterial( {
color: 0xffffff, metalness: 1, roughness: 0, transparency: 1.0, transparent: true, name: 'clear'
color: 0xffffff, metalness: 0, roughness: 0, transparency: 1.0, transparent: true, name: 'clear'
} ),
new THREE.MeshPhysicalMaterial( {
color: 0x000000, metalness: 1, roughness: 0, transparency: 0.7, transparent: true, name: 'smoked'
color: 0x000000, metalness: 0, roughness: 0, transparency: 0.7, transparent: true, name: 'smoked'
} ),
new THREE.MeshPhysicalMaterial( {
color: 0x001133, metalness: 1, roughness: 0, transparency: 0.7, transparent: true, name: 'blue'
} ),
color: 0x001133, metalness: 0, roughness: 0, transparency: 0.7, transparent: true, name: 'blue'
} )

],

Expand Down

0 comments on commit 547c916

Please sign in to comment.