Skip to content

How do I ensure that materials are one-sided or two-sided?Β #737

@hjeldin

Description

@hjeldin

Description

Models are loaded with material.side = THREE.DoubleSided, which causes rendering issues with non-opaque materials.

Schermata 2019-09-03 alle 16 47 03

I don't recall seeing any API to access the THREE.js layer, so i'm kinda out of alternatives, but setting THREE.FrontSide or THREE.BackSide to the side property of the material should suffice.

Live Demo

https://glitch.com/edit/#!/granite-lemur

Browser Affected

  • Chrome
  • Edge
  • Firefox
  • Helios
  • IE
  • Safari

OS

  • Android
  • iOS
  • Linux
  • MacOS
  • Windows

Versions

  • model-viewer: v0.6.0
  • three.js: rXX

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions