Search Unity

Any side effects for having a huge farClipPlane but shorter layerCullDistances?

Discussion in 'General Graphics' started by Dreamback, Feb 16, 2018.

  1. Dreamback

    Dreamback

    Joined:
    Jul 29, 2016
    Posts:
    220
    I have one layer I want to render out at like 5000 meters, and everything else at more natural distances, like 1000 meters. If I set the farClipPlane to 5000 and all but one layer in layerCullDistances at 1000, is that internally rendered the same for those layers as if farClipPlane was 1000? Including the depth buffer and image effects? I can't find any descriptions of how layerCullDistances actually works internally.
     
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,352
    The layerCullDistances are to skip the rendering of objects once they reach a certain distance. This is done on the CPU side by simply not telling the GPU to render them in the first place.