Good day.
have two objects
mesh1;
mesh2;
and have light.
const hlight = new THREE.AmbientLight (0x404040,100);
scene.add(hlight);
const hlight1 = new THREE.AmbientLight (0xE819AC,100);
scene.add(hlight);
I want to react to the first object - hlight.
and for second object i want another light reacted.
something like this
mesh2.receiveLight = false;
mesh2.receiveLight.hlight1 = true;
mesh1.receiveLight = false;
mesh1.receiveLight.hlight = true;
How can i do this ?