# Occlusion

## Overview

The Occlusion distribution samples an ambient occlusion map of the terrain for masking crevices or mountain ridges.

## Parameters

<table><thead><tr><th width="199.7999267578125">Properties</th><th>Description</th></tr></thead><tbody><tr><td><strong>Random Samples</strong></td><td>Uses random samples instead of fixed steps. Can improve performance but causes grain on lower values.</td></tr><tr><td><strong>Horizontal Steps</strong></td><td>The number of horizontal steps in the occlusion computation.</td></tr><tr><td><strong>Vertical Steps</strong></td><td>The number of vertical steps in the occlusion computation.</td></tr><tr><td><strong>Steps</strong></td><td>Multiplier for the overall steps.</td></tr><tr><td><strong>Grain</strong></td><td>Controls the amount of grain in the final mask.</td></tr><tr><td><strong>Occlusion Range</strong></td><td>Allows you to clamp the result of the ao calculation.</td></tr><tr><td><strong>Radius</strong></td><td>The sampling radius of the ao algorithm. Smaller values capture smaller scale details, while larger values result in the detection of large scale terrain features.</td></tr><tr><td><strong>Flatten</strong></td><td>Improves detection of detail in flat areas.</td></tr></tbody></table>

## Results

<figure><img src="/files/867RSm12nS1uhclEkmIr" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.world-creator.com/reference/terrain/distributions/terrain/occlusion.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
