Search Unity

Atlas Terrain Shader

Discussion in 'Works In Progress - Archive' started by alienheretic, Feb 11, 2014.

  1. alienheretic

    alienheretic

    Joined:
    Oct 15, 2008
    Posts:
    60
    Im working on a mesh terrain shader that blends 16 different textures from a texture atlas
    with a blending mode based on titans quest
    uses
    1 atlas texture
    1 control rgba texture paint between 4 columns
    1 variation rgba texture blend between top 2 row textures or bottom 2 row textures depending on variation map
    1 overall bump map
    shader model 3
    uses 1 draw call
    I have tested it on android google nexus 7 and it works good
    if you have comments suggestions or interest please post them

    $atlas_terrain.png $atlas_terrain2.png
     
    Prohell, jason-fisher and JamesArndt like this.
  2. jc_lvngstn

    jc_lvngstn

    Joined:
    Jul 19, 2006
    Posts:
    1,508
    Very nice. Any particular gotchas or issues with it?
    I would think there would be a good bit of interest in this.
     
  3. mcmorry

    mcmorry

    Joined:
    Dec 2, 2012
    Posts:
    580
    It sounds interesting. If you have any plan to release it I'd like to study your shader.
    Also how you build the splat maps? Do you use a software to automate the process?
     
  4. JamesArndt

    JamesArndt

    Joined:
    Dec 1, 2009
    Posts:
    2,932
    I know it was a while back, but what became of this shader? I feel this would be very useful.
     
    jason-fisher likes this.
  5. jason-fisher

    jason-fisher

    Joined:
    Mar 19, 2014
    Posts:
    133
    JamesArndt likes this.
  6. alienheretic

    alienheretic

    Joined:
    Oct 15, 2008
    Posts:
    60
    i recommend mega splat as well its a good shader and I'm not even sure if i have this code anymore
     
  7. JDB-Artist

    JDB-Artist

    Joined:
    Dec 5, 2012
    Posts:
    41
    I really could need this shader right now... didn't find any solution on the asset store that allowed me to use an atlas texture for unity terrains.
     
  8. Golelorn

    Golelorn

    Joined:
    Mar 14, 2017
    Posts:
    2
    How did you avoid the mipmap issue?