Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Changing Water Texture to show Flowing Lava?

Discussion in 'Editor & General Support' started by kashif789us, Aug 7, 2014.

  1. kashif789us

    kashif789us

    Joined:
    May 2, 2013
    Posts:
    163
    Hello everyone, I am trying to change basic water texture or color in some way to show the effect of Flowing Lava.

    I checked "Reflective Color Cube (RGB)" and it was a psd. I changed it to a lava texture but nothing changed.

    How can I change it? Thanks
     
  2. Aurore

    Aurore

    Director of Real-Time Learning Unity Technologies

    Joined:
    Aug 1, 2012
    Posts:
    3,106
  3. OllyNicholson

    OllyNicholson

    Unity Technologies

    Joined:
    Jun 17, 2011
    Posts:
    142
    There is no diffuse texture for Unity water, the texture you replaced is a reflective colour cube which just reflects/refracts some colours from the cubemap input. As lava is not really reflective, refractive or transparent I would imagine you'd need to use a completely different material and a shader with at least diffuse texture inputs. Bumped Diffuse might be best, then you can animate the movement on the object by animating the UV's

    Create new Material > Select Shader > Bumped Diffuse
    Create Lava plane or select mesh > Animation window > Add curve > (create clip) Mesh Renderer > Material._MainTex_St > edit the position of the UV over time

    Then you could do the same for a normal map (Material._Bump_ST) in another direction/speed to simulate rippling undercurrents and detail.
     
  4. kashif789us

    kashif789us

    Joined:
    May 2, 2013
    Posts:
    163
  5. kashif789us

    kashif789us

    Joined:
    May 2, 2013
    Posts:
    163
    Thanks for your reply. Will try it.
     
    OllyNicholson likes this.