What i did is to use an opacity map to make transparency. The idea is to apply the texture only on one face using UV (like i did in the PG) and then use some highlight effect to meke it shining.
The problem is that the effect is too vanishing, i’d like to show also the colors of remaining cube faces, but even if i set the faceColors array, seems not to work. I play with bounding boxes, but i don’t like the result (see line from 34 to 37.
Yes it is what i want, but in my PG they are not green, it’s only higlight green. If you turn off highlight all other faces are transparent, even if i set faceColors. this was my problem. But in your PG, with glow layer now are visibile.
Ok, there’s only a thing a really don’t understand.
Why the faceColors array doesn’t override the cube faces colors?
In this PG i did something similar: https://playground.babylonjs.com/#HBRF92#36 and it works!
Where is the difference or where do i mistake?