> 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>.

这将为你当前的场景打开“Light”工作区。
{% 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>.

生成的场景将显示在您的 Playground 中。
{% endstep %}
{% endstepper %}
{% endtab %}

{% tab title="点光" %}

## 点光源

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

{% hint style="info" %}
光照任务会“添加”光线，而不会改变你场景中的光照。
{% endhint %}

{% stepper %}
{% step %}

#### 选择“光照”

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

这将为你当前的场景打开“Light”工作区。
{% 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>.

生成的场景将显示在您的 Playground 中。
{% 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, and the optional `goal` query parameter:

```
GET https://docs.theseaai.com/main/ch/ren-wu/light.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
