lamina
lamina copied to clipboard
LayerMaterial clone() method doesn't works
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)

And no matter I clone multiple materials, the clone materials always have the same uuid ...
Probably related to https://github.com/FarazzShaikh/THREE-CustomShaderMaterial/issues/20