API Reference > imodeljs-common > DisplayStyles > AmbientOcclusion > AmbientOcclusion.Props > zLengthCap zLengthCap Readonly zLengthCap: undefined | 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 20 Last Updated: 11 June, 2024