Search Unity

Cube outline shader

Discussion in 'Shaders' started by VidorraStudios, Aug 20, 2017.

  1. VidorraStudios

    VidorraStudios

    Joined:
    Aug 25, 2016
    Posts:
    59
    Can anyone help with writing a shader to highlight the visible edges of a cube, retaining the texture.

    I've looked at the Silhouette-Outlined Diffuse shader, but it's not what i'm after as it highlights "around" the cube and doesn't show all visible edges.

    Thanks in advance.
     
  2. tomekkie2

    tomekkie2

    Joined:
    Jul 6, 2012
    Posts:
    973
    I guess you should take a look at wireframe shader and combine it with diffuse shader.