Skip to content

GLTFLoader: Support KHR_materials_transmission physically-based transparency #21000

@Doerge

Description

@Doerge

Describe the bug

The extension KHR_materials_transmission does not semi transparent materials from a .glb.

To Reproduce

Steps to reproduce the behavior:

  1. Get the reference glb from here https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0/TransmissionTest
  2. Load it with threejs gltf loader.
  3. The parts of the geometry that are supposed to be semi-transparent are instead 100% opaque. Only 100% transparency is respected. See screenshots below.

Live example

https://jsfiddle.net/jt6ywhs5/12/

Expected behavior

Semi-transparency and transmission works.

Screenshots

Reference:
Screenshot 2021-01-04 at 17 52 32
Threejs:
Screenshot 2021-01-04 at 18 22 10

Platform:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions