Search Unity

How to achieve heat waves

Discussion in 'Shaders' started by onedong, Oct 14, 2010.

  1. onedong

    onedong

    Joined:
    Aug 27, 2009
    Posts:
    32
    How would I create heat waves. Like you look at a hot road and you can see the rays of heat coming off the road or alot of times you will see a fire or the Sun being shown with heat coming off of it.
     
  2. Reavenk

    Reavenk

    Joined:
    Sep 26, 2009
    Posts:
    7
    Not quite sure what you mean by rays, but if you're talking about heat haze, you could render the scene normally in one pass, then have a particle system that comes off the object (still using the previous scene's z-buffer) in another pass and use that as a turbulence map in a post process.
     
  3. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
  4. onedong

    onedong

    Joined:
    Aug 27, 2009
    Posts:
    32
    Yes this worked dream. Thank you. I had already done something similar to this by putting a layer of refraction over water, but using this in conjunction with it definitely added what i was looking for.