API Reference > imodeljs-common > DisplayStyles > AmbientOcclusion > AmbientOcclusion.Settings > zLengthCap zLengthCap Readonly zLengthCap: number If defined, if the distance in linear depth from the current sample to first sample is greater than this value, sampling stops in the current direction. If undefined, the zLengthCap defaults to 0.0025. The full range of linear depth is 0 to 1. Defined in core/common/src/AmbientOcclusion.ts Line 47 Last Updated: 12 June, 2024