For the most part material variants seem to work. Textures, and values seem just fine in polyspatial. However the colors seem not to get applied.
Anyone have any ideas?
Base Material:
Variant:
Output in RealityKit:
For the most part material variants seem to work. Textures, and values seem just fine in polyspatial. However the colors seem not to get applied.
Anyone have any ideas?
Base Material:
Variant:
Output in RealityKit:
We haven’t tested material variants at all, so it’s not too surprising to me that there are issues. One possibility that comes to mind is that setting a property on a parent material probably doesn’t flag the child material as dirty (so, setting any property on the child to a new value may fix the issue).
If you submit a bug report with a repro case and let us know the incident number (IN-#####), we can investigate and hopefully support material variants in a future release.
Can do. Everything seems to work well with variants so I assumed they worked! It seems to be only material colors.
Current work around will be sampling a gradient for the color.
Hello again! I am investigating this, and having difficulty reproducing it. So far, I am able to create and use materials (either shader graph or URP/Lit) and override color properties in variants as expected. As I understand it, variants are flattened at run time, so I would expect variants to act the same as any other material. If possible, could you submit a repro project in a bug report and let me know the incident number (IN-#####)? That would help me find out exactly what’s going wrong in your case.