Search Unity

Dynamically deform noise map

Discussion in 'Shaders' started by jister, Aug 20, 2017.

  1. jister

    jister

    Joined:
    Oct 9, 2009
    Posts:
    1,749
    hey I'm trying to add wind that goes over water.
    The idea is to take a noise map to apply to the position where bump maps get drawn.
    so it ok when i just scroll the noise map, but i would like just a bit more of a dynamic feel to it, like the spots deforming while moving.
    so i thought to add noise to the noise maps coordinates itself. It gives a nice result for some time but then gets a bit out of hand :)
    any ideas on how to get more control over it?
    this is the line for the noise map:
    Code (CG):
    1. noise = tex2D(_NoiseMap, i.bumpCoords*_NoiseFactor+saturate(noise.rgb*_Time.xyz)+_Time.x);
    and this is the result: