Skip to content

Commit

Permalink
Merge pull request #1213 from NicoPennec/fix/wireframe
Browse files Browse the repository at this point in the history
Improve 3D model preview
  • Loading branch information
NicoPennec authored Oct 6, 2023
2 parents 2e94b44 + 7eea619 commit cc674a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/previews/ObjectViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ export default {
const materials = texture[materialsSymbol]
materials.forEach(material => {
material.wireframe = true
material.emissive.setHex(0xc0c0c0)
material.color.setHex(0xc0c0c0)
material.emissive?.setHex(0xc0c0c0)
material.emissiveMap = null
material.envMapIntensity = 0
})
}
Expand Down
1 change: 1 addition & 0 deletions src/lib/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const ALL_EXTENSIONS = [
'mov',
'obj',
'glb',
'gltf',
'pdf',
'ma',
'mb',
Expand Down

0 comments on commit cc674a0

Please sign in to comment.