Search Unity

Is there a way to render inside the mesh as black?

Discussion in 'General Graphics' started by mchodor, Jul 22, 2021.

  1. mchodor

    mchodor

    Joined:
    Feb 8, 2019
    Posts:
    5
    Hi I am trying to create the side view 3D game, and I'd like to clip the camera through some objects, but I do not want to show what's inside the object, so I am rendering the backfaces, but still if there are several meshes clipping each other they can be seen inside the clipped object.
    Is there a way to just render a black inside the mesh (like in attached example)?
     

    Attached Files:

  2. BrandyStarbrite

    BrandyStarbrite

    Joined:
    Aug 4, 2013
    Posts:
    2,076
    I'm seeing two cubes. Which one do you want inside to be black?