I’m trying to code a jittering effect in a vertex shader instead of using a script, which I’m currently using already. The goal is to offset each vertex by some randomly set amount every frame.
Looking at the functions in the Cg standard library, there’s a noise function that I could use like this:
v.vertex.xyz += noise(_Time) * _NoiseAmount;
But that isn’t working. Is noise() not supported? Is there another way to do this in a vertex shader?