Hi brilliant creators!
I’ve been experimenting to read some shader code and implement it in patch editor.
I’ve able to create some uv transformation and procedural noises patch learned from the book of shaders.
Radial Color Wheel
Grain - Value Noise
Grain smooth - Value Noise
But I found something that i still can’t figure out how to accomplish it.
It’s the for statement or looping. How to do it in spark?
I’ve tried to send the value to script, do the looping in script, and then pass the result from script to patch editor, but still it gives me an error or no values.
I hope someone can guide me on how to do it properly.
- Input the value/vector from patch to script.
- the for statement.
- Output the result from script to patch.
so whenever i want to do looping, i can just drag and drop the script to the project, create the input and output, and change some parameter in it. no need to automatically apply it to some material or something.
My plan is to create these tools to help beginner creators expand their creativity without having to struggle learning some technical stuff, by sharing this patch to the Spark AR library for free if spark ar allow me, or to sugar site if popul-ar interested.