Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Amazing shader

Discussion in 'Shaders' started by toto2003, Oct 5, 2018.

  1. toto2003

    toto2003

    Joined:
    Sep 22, 2010
    Posts:
    528
  2. Invertex

    Invertex

    Joined:
    Nov 7, 2013
    Posts:
    1,539
    It's a raytraced shader effect, you can't do that with a regular fragment shader. Closest thing I could see with regular shaders is using tessellation smoothing, but you'd need supporting edges for that.

    The direction games are heading now is that you simply give your edges a 1 face bevel and then do face-weighted-normals, allowing you to achieve very clean normals and nice rounded edges, often even avoiding needing a baked normal map and just relying on tiled detail maps and a mask.

    http://wiki.polycount.com/wiki/Face_weighted_normals

    https://polycount.com/discussion/155894/decal-technique-from-star-citizen/p1
     
    toto2003 likes this.