Search Unity

cross-section edge shader

Discussion in 'Shaders' started by tomekkie2, Jun 30, 2017.

  1. tomekkie2

    tomekkie2

    Joined:
    Jul 6, 2012
    Posts:
    973
    Zrzut ekranu (94).png

    This is a screenshot of the cross-section that could be made using a version of shader types that were already thoroughly discussed on the forums here.
    A distance along the section plane normal should be added to form a layer where the material gets tinted green.

    I am just wondering how could be possible to get just a constant width outline instead of this greenish layer?
     
  2. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
  3. tomekkie2

    tomekkie2

    Joined:
    Jul 6, 2012
    Posts:
    973
    Thank you very much.
    But thiese shaders provide section fill - based on backfaces and with help of stencil buffer.
    I would like to get the cross-section area outlined with a constant width wire.