Search Unity

Making reversed faces black

Discussion in 'General Graphics' started by justusip, Jun 22, 2017.

  1. justusip

    justusip

    Joined:
    Jan 19, 2015
    Posts:
    4
    By default, if you look at outside from the inside of a model, the reversed faces/normals appear to be invisible in Unity. Is it possible to make the reversed faces render as black (Without any reflections)?
     
  2. jvo3dc

    jvo3dc

    Joined:
    Oct 11, 2013
    Posts:
    1,520
    You'd have to write your own shader, but it is possible to make a distinction between front and back faces. Shader model 3.0 is required and then you can use the VFACE register. (And turn backface culling off of course.)

    If you're unable to write this shader, copy, flip, export and put a black material on it.
     
  3. theANMATOR2b

    theANMATOR2b

    Joined:
    Jul 12, 2014
    Posts:
    7,790