Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PBR Materials on RUIText #17

Open
BjoernLindner opened this issue Aug 21, 2023 · 2 comments
Open

PBR Materials on RUIText #17

BjoernLindner opened this issue Aug 21, 2023 · 2 comments

Comments

@BjoernLindner
Copy link

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

@BjoernLindner
Copy link
Author

BjoernLindner commented Aug 22, 2023

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.

@maxxfrazer
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants