Hi,
Is there a way to access the shader graph nodes in Xcode to change the values during runtime such as changing values based on user inputs? Or is this not possible yet?
Thanks! Myoung
Hi,
Is there a way to access the shader graph nodes in Xcode to change the values during runtime such as changing values based on user inputs? Or is this not possible yet?
Thanks! Myoung
Hi, we have the setParameter and getParameter APIs that you can use to change parameter values of a ShaderGraphMaterial at runtime. Does that answer your question?
Awesome! Is there an example that uses these two APIs that show how to retrieve the values from RCP shader graph?
These two sample projects should contain what you need.
https://developer.apple.com/documentation/visionos/diorama
https://developer.apple.com/documentation/visionos/happybeam
You might find this (my) sample code helpful. I was wondering the same thing, and wrote a test app. It's very simple, and does only one thing.