Random/Noise values in shader question

I’d like to use a random number in the technique for my pixel shader. It’s saying that the “noise” function is not yet implemented. Well how would you more experienced folks handle this in your shaders?

code would be something like:
do something cool

Thanks, I’m excited to join the VVVV community!


have a look at desaxismundis vertexnoise example. that is the way you do (fake) noise in shaders.

Thanks for the speedy reply. I’ll see what I can do with that. It certainly is more work than using noise(). Oh well, hopefully the programming gods that delivered VVVV to us will come down from high with that too!

Thanks again, joreg.

+1 about the noise implementation in the shaders…

using a noise table for vertex shaders or a noise texture for pixel shaders is much faster than using this alorithm… besides that, you can pass spreads to a shader.

I wouldn’t mind using a noise texture if I could figure out how to generate one quickly. The whole reason I use the shaders is for their speed. Generating large textures in real time… hmmm

you can write one with a patch… making a very big noise texute in realtime is slow too…

make_noise_tex.v4p (8.6 kB)