Skip to content

Instantly share code, notes, and snippets.

@planaria
Created August 10, 2018 00:41
Show Gist options
  • Save planaria/1962b41edd09e8c3249b52d55a48b72a to your computer and use it in GitHub Desktop.
Save planaria/1962b41edd09e8c3249b52d55a48b72a to your computer and use it in GitHub Desktop.
wave
void vert(inout appdata_full v) {
v.vertex.xyz += normalize(UnityObjectToWorldNormal(v.normal)) * sin(_Time * 10.0 + (v.texcoord.x + v.texcoord.y) * 10.0) * 0.1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment