Post

Replies

Boosts

Views

Activity

Reply to Vision OS and coloring entities using Metal Shaders
Hi gchiste, Thank you for your reply - I will look more into ShaderGraphMaterial. Meanwhile here is what I'm trying to achieve: I want to create 3D entity using a MeshDescriptor and MeshResource, for example a triangle, and have the ability to change the color of the mesh dynamically without making the entire entity the same color. For example, how would I go about creating this triangle below in Vision OS? And how would I dynamically change the color of the triangle when the app is running? Imagine there are 4 buttons labelled red, green, blue and mix. Pressing a button should change the color of the triangle. The image is from this guide on CustomMaterial: https://developer.apple.com/documentation/realitykit/modifying-realitykit-rendering-using-custom-materials
Oct ’23