Hello, I’m working on this little thing here, where I would need an object loaded with OBJLoader to receive and cast shadows, even amongst it’s children.
Here’s a cut down version of my code so far, can anyone see what I’m doing wrong here?
Turns out that for some reason, even if I go all the way down to 0 intensity on the ambient light, nothing changes, even when playing around with the values, which… well, is weird to say the least, never the matter, here’s my defaultMaterial: const defaultMaterial = new THREE.MeshBasicMaterial( { color: 0xEEEEEE } );
I remember encountering this issue years before, it’s just been a while since I used Three.js… so dumb of me. Anyways, I know this is off topic, but would you have any idea how I could apply a material on top of another? I looked for some solutions, but while half of them were outdated, the other half just plainly didn’t work. The purpose here is to highlight a child I’m currently hovering over, so my goal is to just apply the following on top of an existing material:
You can change the material to highlight something, and then switch it back to original.
Example : Raycaster Mouse Picking
If this example doesn’t help then start a new thread.