Search Unity

Question How do I put an object BEHIND all the rest of the scene?

Discussion in 'General Graphics' started by PolyMad, Nov 2, 2021.

  1. PolyMad

    PolyMad

    Joined:
    Mar 19, 2009
    Posts:
    2,350
    I would like to put a huge planet as a background to the scene.
    As the mountains would cover it, I can't just splat it there in the sky.
    I need to render it behind everything that is in the scene, except the skybox.
    How do I achieve this?
     
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,352
    The common method for doing this would be to use multiple cameras. Render the skybox and the planet in one camera, render the rest of the scene with another camera using Clear Flags > Don't Clear.
     
    PolyMad likes this.