Search Unity

water showing over billboard trees

Discussion in 'Shaders' started by Zaffer, Mar 27, 2012.

  1. Zaffer

    Zaffer

    Joined:
    Oct 21, 2010
    Posts:
    266
    Hi,
    I posted this question to the Support Forum and found another person with the same problem, but no answer yet. Maybe I should have posted here first. View attachment 32664

    I used the Transparent/Bumped Specular shader to make my own water shader for a river and lake. As you can see from the attached picture, the river/water shows through the tree in front of it -- but only when the tree is billboarded. I found a thread with a similar question and answer here http://forum.unity3d.com/threads/77544-3.2-Water-over-billboard-trees, but the fix given by Code Monkey involved editing the FX-Water3.shader like this:
    I would like to see if I can edit the Transparent/Bumped Specular shader in a similar way if possible, but it does not seem to have an Edit button like most of the other shaders. Any suggestions? Thanks.

    Zaffer
     
  2. HolBol

    HolBol

    Joined:
    Feb 9, 2010
    Posts:
    2,887
    I think Unity supply the default shader source separately. it'll be in there.
     
  3. Zaffer

    Zaffer

    Joined:
    Oct 21, 2010
    Posts:
    266