Search Unity

Clipping objects between the camera and a plane

Discussion in 'General Graphics' started by plmx, Aug 2, 2019.

  1. plmx

    plmx

    Joined:
    Sep 10, 2015
    Posts:
    308
    Hi,

    I've come across the issue that I would like to cull parts of objects between the camera and a certain plane in the scene (the camera view eventually gets rendered onto a rendertexture and displayed as a portal). The near clipping plane is not useful in this regard since it is always 'rotated' with the camera; what I am after is having the camera clip everything before a fixed plane in the scene.

    Is this possible? How?

    Philip
     
  2. plmx

    plmx

    Joined:
    Sep 10, 2015
    Posts:
    308
    iSinner likes this.