Hubs-Foundation / hubs

Duck-themed multi-user virtual spaces in WebVR. Built with A-Frame.
https://hubsfoundation.org
Mozilla Public License 2.0
2.13k stars 1.42k forks source link

BG - Need ' = ' node to compare Materials #6433

Open j-conrad opened 8 months ago

j-conrad commented 8 months ago

Is your feature request related to a problem? Please describe. It's a useful design pattern to be able to Get Material from an entity and if it matches some other material, act accordingly.

Describe the solution you'd like I am proposing a node similar to the way we compare entities. Imagine replacing the Entity comparison node ( = ) with one that has material fields.

image

Describe alternatives you've considered I've tried converting the material to some other variable type to no avail.