So now I’m playing with GlowLayer.
I found an old playground someone put up and modified it to illustrate what I’m trying to do.
Basically I want to:
- Be able to click on a mesh and it to glow.
- Have only one mesh at a time be glowing.
- Clicking off into space will cause the currently glowing mesh to stop glowing.
I understood (mistakenly?) that the GlowLayer would find the meshes that have emissive colors added to their materials. My logic was that I could by capturing the mesh clicked, could add the emissive color to get the glow, then remove the emissive color by clicking anywhere else and the mesh would stop glowing. Some of it kind of works.
Here’s my PLAYGROUND