One random value to be used througout the run of the scene.
👍@TheEmu - I know I'm probably being a *****. But this is not my original programming language and a lot of the concepts in it are new to me. In the past I've worked mainly in perl doing statistical things which are a lot simpler.
So what I'm trying to do is make interesting conversions of shaders and eventually my own. The one I'm working on at the moment is on Shadertoy here: https://www.shadertoy.com/view/cl23Wd
I've tweaked it so that each time you run it a random number based on iDate makes the shape of the cavern different:
Line 214 - 219
// Calgon - randomised start depending on time
float startSecs = iDate.w - iTime;
float randThing = sin(startSecs);
To bring that over to vghd I found we don't have iDate so I used 100 texture files to create a random number from the pixel shade.
...but this shader needs two textures as well.
So I'm really looking for a way to get 3 textures into the code OR 2 textures and a different method to create a random number that is constant "througout the run of the scene".
Once I understand how to do that, there are endless possibilities to tweak other shaders into novel designs that are different every time you run the scene.