maxxfrazer / RealityUI

A Swift Package for creating familiar UI Elements and animations in RealityKit. For both Augmented Reality or Virtual Reality scenes. Now with visionOS support.

Home Page:https://maxxfrazer.github.io/RealityUI/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PBR Materials on RUIText

BjoernLindner opened this issue · comments

hi,

what is the best solution für using per mats on run text to get brilliant colors?
you tutorial https://medium.com/@maxxfrazer/getting-started-with-realitykit-brilliant-colours-91a12936b773 helped me a lot on all other nodes, but I don't know how to combine both these things.

thanks a lot

https://github.com/BjoernLindner/RealityUI/blob/main/Sources/RealityUI/RUIText.swift

this ist working, but need some improvements for choosing the materials that the user wants.
maybe an init with materials instead of color.

Hi @BjoernLindner thanks for the PR! init with materials might be a good idea, but I still want people to have just a colour option. It sounds like the perfect fit for enums with associated types to me! Would be useful to have it across all objects too…
I’ll have a think about it and will post more on this thread.