Search Unity

multiple detail maps

Discussion in 'Shaders' started by deepcgi, Mar 13, 2007.

  1. deepcgi

    deepcgi

    Joined:
    Aug 24, 2006
    Posts:
    57
    how would I go about implementing multiple detail maps for a terrain, based on type? For example, one detail map for grass, rock, lake bed, etc...

    Are the detail maps per material only?
     
  2. pete

    pete

    Joined:
    Jul 21, 2005
    Posts:
    1,647
    do you mean detail like an AO map or being able to tile multiple textures? for multiple textures search for layered shaders - there's at least one on the wiki and a few threads about it. you use alphas to define what texture goes where.

    towards the bottom of this thread
    http://forum.unity3d.com/viewtopic.php?t=2372

    there's a project you can dl that has a 4 texture terrain.
     
  3. gon

    gon

    Joined:
    Jul 6, 2006
    Posts:
    53
    Hi guys,

    as Marble was also questioning recently, it seems to me indeed that combining the strength of bump maps and detail maps can be powerful.
    On top of this, I as well see the relevancy of multiple layers with each his own alpha, detail and bump maps.

    layer 1
    main1+detail1+bump1+alpha1
    layer 2
    main2+detail2+bump2+alpha2
    ...
    layer n
    mainn+detailn+bumpn+alphan

    what do you think and can the code be that flexible for us to specify how many layers are used?