Skip to content
This repository has been archived by the owner on Apr 5, 2023. It is now read-only.

LayerMaterial clone() method doesn't works #39

Open
bufffun opened this issue Jul 2, 2022 · 1 comment
Open

LayerMaterial clone() method doesn't works #39

bufffun opened this issue Jul 2, 2022 · 1 comment
Labels
bug Something isn't working CSM

Comments

@bufffun
Copy link

bufffun commented Jul 2, 2022

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

@FarazzShaikh
Copy link
Member

Probably related to FarazzShaikh/THREE-CustomShaderMaterial#20

@FarazzShaikh FarazzShaikh added bug Something isn't working CSM labels Jul 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working CSM
Projects
None yet
Development

No branches or pull requests

2 participants