Search Unity

Cutout shader acting strange when viewed from sharp angles

Discussion in 'Shaders' started by block_boy_, Oct 18, 2021.

  1. block_boy_

    block_boy_

    Joined:
    Oct 27, 2015
    Posts:
    3
    I a was playing around with cutout shaders when I discovered that when viewed either head on or nearly head the clipped pixels become visible again. Is there a way to avoid this?

    upload_2021-10-19_6-47-58.png upload_2021-10-19_6-48-21.png

    Any advice would be appreciated.
     
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,343
    Is this a custom shader, or a built in one? If it's a custom shader can we see the code? If it's a built in one which one? What kind data is being used to do the clipping?