Lens Scripting API

    Enumeration DepthBufferMode

    Used in Camera's depthBufferMode property. Each mode is suited for handling objects at a certain distance range. For more information on depth modes, see the Camera and Layers guide.

    // @input Component.Camera camera

    script.camera.depthBufferMode = Camera.DepthBufferMode.Logarithmic;
    Index

    Enumeration Members

    Enumeration Members

    Logarithmic: number

    Gives higher depth precision on far away objects, so is better suited for scenes far away from the camera.

    Regular: number

    Gives higher depth precision on nearby objects, so is better suited for scenes near to the camera.

    MMNEPVFCICPMFPCPTTAAATR