Search Unity

two layer tilable + lightmap

Discussion in 'Shaders' started by escondar, Jun 22, 2007.

  1. escondar

    escondar

    Joined:
    Dec 20, 2005
    Posts:
    83
    Hello all.

    I have been experimenting with the twolayerbumped shader from the shader wiki:

    http://www.unifycommunity.com/wiki/index.php?title=TerrainTwoLayerBumped

    but I need something different and wondered how simple it would be.

    I want the two seperate detailed textures controlled with alpha as this one has but instead of a bump channel I wanted a channel that I could place a light map into. Is there an easy way to switch the bump channel with a lightmap for the entire shader?

    Better still than a lightmap would be an overall color map (relatively low res) that I would just include the baked shadows in.
     
  2. Aras

    Aras

    Unity Technologies

    Joined:
    Nov 7, 2005
    Posts:
    4,770
    So in a way you want a shader where main texture is the lightmap (with shadows, colors and whatnot), and you'd have two detail textures on top? (controlled by lightmap's alpha)
     
  3. escondar

    escondar

    Joined:
    Dec 20, 2005
    Posts:
    83
    a much more concise way of wording what I want. yes. thanks.

    Its exactly what I need.
     
  4. AaronC

    AaronC

    Joined:
    Mar 6, 2006
    Posts:
    3,552
    Hey
    this is a great request....
    AC