# 遮罩图层

## 概览

遮罩图层允许你通过在 World Creator 中直接绘制或从外部来源导入位图来遮罩地形的特定部分。遮罩图层与分布系统兼容，因此可以被滤镜和材质引用。&#x20;

## 视频指南

{% embed url="<https://vimeo.com/1029691310>" %}
World Creator 指南
{% endembed %}

## 结果

<div><figure><img src="/files/489caaab58dcb7c371a98728c71a25f929b57268" alt=""><figcaption><p>创建遮罩</p></figcaption></figure> <figure><img src="/files/47d247d9f63ba117385975f1b963293606016840" alt=""><figcaption><p>遮罩材质和滤镜</p></figcaption></figure></div>

## 图层参数

### 遮罩图层设置

| ![](/files/9f0eb79361e3ec06a772f0fdcee5fcaf4b2cc32e) | <ul><li><strong>显示遮罩</strong> <br>在地形上显示遮罩。</li><li><strong>导入/导出</strong> <br>允许你导入或导出遮罩。</li><li><strong>编辑</strong> <br>允许你使用画笔编辑遮罩。</li></ul> |
| ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |

### 区域设置

区域设置允许你在地形上自由定位遮罩图层，并提供简单的控制以将它们融合到地形中。

| ![](/files/fc532f729ffe4fa6ba6c215399d85dcc8db8e6a9) | <ul><li><strong>X/Y</strong><br>区域在地形上的位置。</li><li><strong>区域缩放</strong><br>区域的大小。</li><li><strong>旋转</strong><br>区域的旋转。</li><li><strong>适应地形</strong><br>将区域匹配到地形的整体尺寸。</li><li><strong>混合</strong><br>控制整个形状图层的不透明度。</li><li><strong>混合大小</strong><br>为区域添加淡入效果。</li><li><strong>混合圆度</strong><br>使面的角落变圆。</li></ul> |
| ---------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

## 编辑参数

这些参数仅在遮罩处于 **编辑** 模式时可用。

### 画笔工具 <a href="#brush-tools" id="brush-tools"></a>

用于修改遮罩的简单绘画工具。点击所需工具以选择，然后用鼠标绘制（在地形上按下左鼠标按钮）。提供以下功能：

| <ul><li><strong>绘制</strong><br>向遮罩添加内容。</li></ul>        | <ul><li><strong>擦除</strong><br>从遮罩中移除内容。</li></ul> |
| -------------------------------------------------------- | -------------------------------------------------- |
| <ul><li><strong>平滑</strong><br>对画笔下的遮罩进行平均化处理。</li></ul> |                                                    |

### 操作

这些操作用于快速执行精确修改。请参阅下列表以了解每个操作的功能。

| <ul><li><strong>水平翻转</strong><br>沿 X 轴翻转遮罩。</li></ul> | <ul><li><strong>垂直翻转</strong><br>沿 Y 轴翻转遮罩。</li></ul> |
| ----------------------------------------------------- | ----------------------------------------------------- |
| <ul><li><strong>向左旋转</strong><br>将遮罩旋转 90°。</li></ul> | <ul><li><strong>向右旋转</strong><br>将地形旋转 90°。</li></ul> |
| <ul><li><strong>清除</strong><br>将整个遮罩设置为 0。</li></ul>  | <ul><li><strong>填充</strong><br>将整个遮罩设置为 1。</li></ul>  |

### 画笔设置

<table><thead><tr><th width="199.800048828125">属性</th><th>描述</th></tr></thead><tbody><tr><td><strong>画笔</strong> </td><td>允许你指定多个预装画笔以及导入你自己的自定义画笔。</td></tr><tr><td><strong>衰减模式</strong></td><td>提供不同的画笔衰减模式。</td></tr><tr><td><strong>画笔半径</strong></td><td>画笔的半径。</td></tr><tr><td><strong>画笔平滑</strong></td><td>画笔平滑的大小。</td></tr><tr><td><strong>画笔强度</strong></td><td>控制当前选定画笔的强度。</td></tr><tr><td><strong>旋转</strong></td><td>旋转画笔图案。</td></tr><tr><td><strong>随机旋转</strong></td><td>为画笔图案添加随机旋转。</td></tr><tr><td><strong>对齐绘制方向</strong></td><td>将画笔图案朝向绘制方向。</td></tr></tbody></table>


---

# 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/zh/can-kao/terrain/mask-layers.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.
