Skip to content

Error using setSheenColorFactor in Material #5079

@chesstrian

Description

@chesstrian

Hi,

The issue is reproducible from model-viewer version 3.2.0 to 4.1.0:

const viewer = document.getElementsByTagName('model-viewer')[0]
viewer.model.materials[0].setSheenColorFactor('#ffffff')

Output:

Uncaught TypeError: Cannot read properties of undefined (reading 'set')
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions