lamina icon indicating copy to clipboard operation
lamina copied to clipboard

LayerMaterial clone() method doesn't works

Open bufffun opened this issue 2 years ago β€’ 1 comments

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

bufffun avatar Jul 02 '22 18:07 bufffun

Probably related to https://github.com/FarazzShaikh/THREE-CustomShaderMaterial/issues/20

FarazzShaikh avatar Jul 16 '22 08:07 FarazzShaikh