Dear Sirs,
I want to highlight models (materials) like this
Working example without texture https://codepen.io/nxhoang/full/NMBeGj/
However, there are some errors if loading OBJ with texture
Here is my codepen https://codepen.io/nxhoang/pen/oyEEmW
Please help me,
Thanks a lot.
You are raycasting just the entire scene, including your grid, just use a container object or simly an array you pass instead scene.children.
Also for some reason the material of the model seems to be an array of materials, why?
Once (or twice ) upon a time, I bumped into the situation, when the material of a model was THREE.ShaderMaterial()
, thus it didn’t have .emissive
property.