> For the complete documentation index, see [llms.txt](https://docs.theseaai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.theseaai.com/main/ch/ren-wu/light.md).

# 光线

***

### 方向光

<figure><img src="/files/fe8f7b4b86ed02664c4e57faf074437ccd160b15" alt=""><figcaption></figcaption></figure>

### 点光源

<figure><img src="/files/8e238f4d4bcaff6a90ec0fde0f2d26b23b9e4b56" alt=""><figcaption></figcaption></figure>

***

## 互动教程

{% hint style="info" icon="language" %}
**如何更改教程语言**\
教程默认以英语显示。要以其他语言查看此教程，请将鼠标悬停在右上角并选择 <i class="fa-language">:language:</i> **语言**.
{% endhint %}

{% @arcade/embed flowId="nDknQ4kQysDz3YFAVnOh" url="<https://app.arcade.software/share/nDknQ4kQysDz3YFAVnOh>" %}

{% @arcade/embed flowId="qntgD825V4JIWwctus3i" url="<https://app.arcade.software/share/qntgD825V4JIWwctus3i>" %}

***

## 使用方法

{% tabs %}
{% tab title="方向" %}

## 方向光

方向光用于调整整个场景的全局照明。

{% hint style="info" %}
光照任务将“添加”光源，而不会更改场景中已有的光照。
{% endhint %}

{% stepper %}
{% step %}

#### 选择“光源”

在左侧任务菜单中，选择 <kbd><mark style="color:$primary;">**光源**<mark style="color:$primary;"></kbd>.

这将为当前场景打开光源工作区。
{% endstep %}

{% step %}

#### 上传产品图片

产品图片将作为前景元素使用。

你可以通过以下方式上传图片：

* 选择 <kbd><mark style="color:$primary;">**上传图片**<mark style="color:$primary;"></kbd> 在场景内
* 从电脑文件夹中拖放图片
* 从屏幕左下角的库面板拖放图片

上传后，产品将出现在场景中。
{% endstep %}

{% step %}

#### 选择方向光

默认选择方向光。\
在场景顶部，选择 <kbd><mark style="color:$primary;">**方向**<mark style="color:$primary;"></kbd> 选项卡。
{% endstep %}

{% step %}

#### 调整光线方向

你可以从放置在场景边缘的点中选择光线方向，或从右侧的光源设置面板中选择。

**从场景中选择：**

1. 将鼠标悬停在场景角落的白色点上。
2. 选择你想要的光线方向。
3. 光线指示器将显示所选方向。

**从光源设置面板选择：**

1. 打开方向下拉列表。
2. 选择以下方向之一：
   * <kbd><mark style="color:$primary;">**左下**<mark style="color:$primary;"></kbd>
   * <kbd><mark style="color:$primary;">**左中**<mark style="color:$primary;"></kbd>
   * <kbd><mark style="color:$primary;">**左上**<mark style="color:$primary;"></kbd>
   * <kbd><mark style="color:$primary;">**上中**<mark style="color:$primary;"></kbd>
   * <kbd><mark style="color:$primary;">**右上**<mark style="color:$primary;"></kbd>
   * <kbd><mark style="color:$primary;">**右中**<mark style="color:$primary;"></kbd>
   * <kbd><mark style="color:$primary;">**右下**<mark style="color:$primary;"></kbd>
   * <kbd><mark style="color:$primary;">**下中**<mark style="color:$primary;"></kbd>
3. 光线指示器将显示所选方向。
   {% endstep %}

{% step %}

#### 可选：选择背景色

如果你的图像具有透明背景，你可以选择在场景中生成的背景颜色。在右侧的光源设置面板中：

1. 选择 <kbd><mark style="color:$primary;">**背景（用于产品）**<mark style="color:$primary;"></kbd> 下拉菜单。
2. 从以下选项中选择颜色：
   * 从中性色调列表中选择
   * 从调色板中选择
   * 使用 <i class="fa-eye-dropper" style="color:$primary;">:eye-dropper:</i> 拾色器工具选择颜色
   * 在文本输入字段中输入 HEX 颜色值
     {% endstep %}

{% step %}

#### 可选：添加文本提示

在右侧的光源设置面板中，你可以为整体方向添加文本提示。\
在文本提示字段：

1. 直接在文本提示字段中输入。
2. 选择 <kbd><mark style="color:$primary;">**库**<mark style="color:$primary;"></kbd> 以重复使用先前保存的提示。
3. 从 <i class="fa-cloud-arrow-up" style="color:$primary;">:cloud-arrow-up:</i> 图标，上传图像，Beachside 将创建描述并将文本放入提示字段。
   {% endstep %}

{% step %}

#### 选择输出数量

在右侧的光源设置面板：

* 选择要生成的变体数量。
* 您最多可以一次生成 4 个场景。
  {% endstep %}

{% step %}

#### 生成

确认所有设置后，选择 <kbd><mark style="color:$primary;">**生成**<mark style="color:$primary;"></kbd>.

生成的场景将出现在您的游乐场中。
{% endstep %}
{% endstepper %}
{% endtab %}

{% tab title="点光源" %}

## 点光源

点光源允许你在场景中放置局部照明。你可以直接在画布上定义光源的位置和大小。

{% hint style="info" %}
光照任务将“添加”光源，而不会更改场景中已有的光照。
{% endhint %}

{% stepper %}
{% step %}

#### 选择“光源”

在左侧任务菜单中，选择 <kbd><mark style="color:$primary;">**光源**<mark style="color:$primary;"></kbd>.

这将为当前场景打开光源工作区。
{% endstep %}

{% step %}

#### 上传产品图片

产品图片将作为前景元素使用。

你可以通过以下方式上传图片：

* 选择 <kbd><mark style="color:$primary;">**上传图片**<mark style="color:$primary;"></kbd> 在场景内
* 从电脑文件夹中拖放图片
* 从屏幕左下角的库面板拖放图片

上传后，产品将出现在场景中。
{% endstep %}

{% step %}

#### 选择点光源

默认选择方向光，请更改你的模式。

在场景顶部，选择 <kbd><mark style="color:$primary;">**点光源**<mark style="color:$primary;"></kbd> 选项卡。
{% endstep %}

{% step %}

#### 调整光源位置和大小

中心点定义光线的起源位置。

圆形边界定义光线在场景中扩散的范围。

**在画布上：**

* 选择并拖动蓝色中心点以更改光源的位置。
* 拖动外部圆形边界以增大或减小光照半径。
  {% endstep %}

{% step %}

#### 可选：添加文本提示

在右侧的光源设置面板中，你可以为整体方向添加文本提示。\
在文本提示字段：

1. 直接在文本提示字段中输入。
2. 选择 <kbd><mark style="color:$primary;">**库**<mark style="color:$primary;"></kbd> 以重复使用先前保存的提示。
3. 从 <i class="fa-cloud-arrow-up" style="color:$primary;">:cloud-arrow-up:</i> 图标，上传图像，Beachside 将创建描述并将文本放入提示字段。
   {% endstep %}

{% step %}

#### 选择输出数量

在右侧的光源设置面板：

* 选择要生成的变体数量。
* 您最多可以一次生成 4 个场景。
  {% endstep %}

{% step %}

#### 生成

确认所有设置后，选择 <kbd><mark style="color:$primary;">**生成**<mark style="color:$primary;"></kbd>.

生成的场景将出现在您的游乐场中。
{% endstep %}
{% endstepper %}
{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.theseaai.com/main/ch/ren-wu/light.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.
