Skip to content
This repository was archived by the owner on Jun 22, 2025. It is now read-only.
This repository was archived by the owner on Jun 22, 2025. It is now read-only.

LayerMaterial clone() method doesn't works #39

Description

@bufffun

clone material is not same as origin material

const material = new LayerMaterial({
      color: new THREE.Color(0xff0000),
      lighting: 'physical',
    });

const cube = new THREE.Mesh(geometry, material.clone());
Wrong Result, Should be red (0xff0000)

截屏2022-07-03 上午2 53 26

And no matter I clone multiple materials, the clone materials always have the same uuid ...
截屏2022-07-03 上午3 06 14

Metadata

Metadata

Assignees

No one assigned

    Labels

    CSMbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions