So I have a map with some icons that are square png’s that have transparency around whatever their shape is. I’m trying to make it so that on hover (and other activation states) that the ones not of interest are grayed out in some manner. What would be the best way to do this?
I’ve tried having the visibility of the mesh changes, but this also affects the parts that are initially transparent and turns them gray. I also tried excluding some of the meshes from the light that is illuminating the diffuseTextures, but this appears to not be reversible (it works for removing them from the light, but they cant be unremoved by just removing them from the excludedMeshes array of the light it appears). It does however appear that having just the ones you want to illuminate in the includedOnlyMeshes array does work as I expected.
I imagine theres a way I can do what I want with having 2 lights and modulating their intensities and using the includeOnlyMeshes so that I can get the desired effect with transition, but I figured I would check to see if I’m misunderstanding how something works or just not seeing a better solution to the problem.