Search Unity

ats color map ULTRA shader [RELEASED]

Discussion in 'Assets and Asset Store' started by larsbertram1, Oct 17, 2012.

  1. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    5,336
    that's a surface shader... so unity is responsible from handling this.
    nevertheless: when it comes to light mapping all the shader does is to provide a valid meta pass.
    you can see the output of the meta pass by switching to "albedo" in the lighmapping preview (scene view).
    this should somehow fit a low res color preview of the terrain.
    it might be broken in 2019 versions of unity as the lightmapper provide corrupted uvs...
    nothing we can fix on the parallax shader – as it is a surfce shader.

    anyway: if the terrain is seen by directional lights then it should be see by point lights as well.
     
  2. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    2,079
    I've checked the actual lightmap texture, nothing from point lights written there or visible in scene view preview.
    It's either Bakery, or CMU. Other meshes rendered just fine, and the terrain isn't. So I guess its CMU.

    In any case, I've excluded terrain from lightmapping right now.
    (It doesn't have that much of a shadow pass overhead anyways, so I'll just use realtime lights for it).

    If you manage to find out what's wrong, let me know.
     
  3. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    2,079
    @larsbertram1 Actually I was wrong, sorry.

    Its caused by the "Terrain optimization" feature of the Bakery.
    With it disabled point lights render to the lightmap just fine.
     
  4. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    5,336
    :)
     
  5. apan-bin

    apan-bin

    Joined:
    May 15, 2015
    Posts:
    25
    Can this shader support SRP?
     
  6. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    5,336
    it does not at the moment. what are you looking for? hdrp or urp?
     
  7. apan-bin

    apan-bin

    Joined:
    May 15, 2015
    Posts:
    25
    urp
     
  8. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    5,336
    there is a way simpler but terrain shader in my Lux LWRP Essentials package (which also works using URP).
    it does not work with texture arrays, does not cover dyanmic snow and wetness or tessellation but at least supports proper normal mapping and advanced parallax mapping.
    the package also contains a terrain/mesh blending shader. and tons of other stuff.
     
  9. apan-bin

    apan-bin

    Joined:
    May 15, 2015
    Posts:
    25
    Are you planning to upgrade this shader to URP?
     
  10. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    5,336
    i will look into this, yes.