> For the complete documentation index, see [llms.txt](https://docs.icraft.design/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.icraft.design/editor-features/resource-panel/basic-graphics/light.md). Agents can also search and read this documentation through its [MCP server](https://docs.icraft.design/~gitbook/mcp).

# Light

In 3D scenes, lighting and shadows are essential for creating atmosphere, enhancing spatial depth, and achieving visual realism.

iCraft provides three core lighting components: Directional Light, Point Light, and Spot Light. By arranging lights properly, you can bring depth, realism, and visual focus to your scene.

<figure><img src="https://2043086618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqs5xBLyTN4cVMplr2ANM%2Fuploads%2Ftok4H2owNn0voCwWbgX7%2F1.png?alt=media&amp;token=9a77a468-c3fb-4fdc-8cf1-fdb4237827c2" alt=""><figcaption></figcaption></figure>

***

## Directional Light

A **Directional Light** simulates a very distant large light source (such as the sun). The light rays it emits are parallel and do not attenuate with distance.

It is primarily used to provide global illumination and scene-wide shadows.

### Special Parameters

#### Basic Parameters

* **Position**\
  Defines the spatial position of the directional light in the 3D scene coordinate system (X/Y/Z).\
  The position can be adjusted freely within the canvas space.
* **Rotation**\
  Determines the direction of the light rays, which controls the direction and length of shadows.

  Default value: (0°, 0°, 0°)

  Adjustable range: `-360° to 360°` (supports continuous rotation beyond 360°)

<figure><img src="https://2043086618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqs5xBLyTN4cVMplr2ANM%2Fuploads%2FoAf5pjX7lRjBcgu8YkCk%2F%E5%B9%B3%E8%A1%8C%E5%85%89%E5%9F%BA%E7%A1%80%E5%8F%82%E6%95%B0-%E8%8B%B1%E6%96%87.webp?alt=media&amp;token=6e4f352c-738e-4a31-ad12-feae3f1e0df0" alt=""><figcaption></figcaption></figure>

#### Light Parameters

* **Color**\
  Select the main color of the light using the color picker.\
  Default color: `#ffd17c`
* **Intensity**\
  Controls the brightness of the light.

  Default value: 1

  Adjustable range: `0 – 10`

<figure><img src="https://2043086618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqs5xBLyTN4cVMplr2ANM%2Fuploads%2FKl0AUMTGnU4i2GE0a3oi%2F%E5%B9%B3%E8%A1%8C%E5%85%89%E7%81%AF%E5%85%89%E5%8F%82%E6%95%B0-%E8%8B%B1%E6%96%87.webp?alt=media&amp;token=352b6da1-a90f-40d0-9bb7-61927941278d" alt=""><figcaption></figcaption></figure>

#### Shadow Parameters

* **Cast Shadow**\
  Toggle that determines whether objects cast shadows onto surfaces. Enabling this option makes lighting effects more realistic.\
  Default: Disabled
* **Resolution**\
  Determines the quality level of the shadow map.

  Default: Medium

  Options: High / Ultra
* **Range**\
  Defines the area used for shadow calculations.

  Default value: 40

  Adjustable range: `1 – 200`

<figure><img src="https://2043086618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqs5xBLyTN4cVMplr2ANM%2Fuploads%2FIljekgSKqdSs6KUF7k5p%2F%E5%B9%B3%E8%A1%8C%E5%85%89%E9%98%B4%E5%BD%B1%E5%8F%82%E6%95%B0-%E8%8B%B1%E6%96%87.gif?alt=media&amp;token=09d3d166-bd49-467d-abea-466378740f93" alt=""><figcaption></figcaption></figure>

***

## Point Light

A **Point Light** emits light equally in all directions from a single point, similar to a light bulb or candle. It produces a strong sense of spatial position, and the light naturally attenuates with distance.

### Special Parameters

#### Basic Parameters

* **Position**\
  Defines the spatial position of the point light in the 3D scene coordinate system (X/Y/Z).\
  The position can be adjusted freely within the canvas space.
* **Rotation**\
  Determines the direction of the light rays, which controls the direction and length of shadows.

  Default value: (0°, 0°, 0°)

  Adjustable range: `-360° to 360°` (supports continuous rotation beyond 360°)

<figure><img src="https://2043086618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqs5xBLyTN4cVMplr2ANM%2Fuploads%2Feb4r6vqNz2uEZFGnu5VY%2F%E7%82%B9%E5%85%89%E6%BA%90%E5%9F%BA%E7%A1%80%E5%8F%82%E6%95%B0-%E8%8B%B1%E6%96%87.webp?alt=media&amp;token=182e57e0-7660-4b06-a770-a0dea3c78702" alt=""><figcaption></figcaption></figure>

#### Style Parameters

* **Color**\
  Select the main color of the light using the color picker.\
  Default color: `#ffd17c`
* **Intensity**\
  Controls the brightness of the light source. Higher values produce brighter light.

  Default value: 5

  Adjustable range: `0 – 10`
* **Distance**\
  Defines the maximum effective illumination distance. Larger values increase the area covered by the light.

  Default value: 0.1

  Adjustable range: `0.1 – 100`
* **Attenuation**\
  Controls how quickly the light fades with distance. Higher values make distant areas darker.

  Default value: 2

  Adjustable range: `0 – 5`

<figure><img src="https://2043086618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqs5xBLyTN4cVMplr2ANM%2Fuploads%2FcGYlK7TFIqiGcOecyUaf%2F%E7%82%B9%E5%85%89%E6%BA%90%E6%A0%B7%E5%BC%8F%E5%8F%82%E6%95%B0-%E8%8B%B1%E6%96%87.webp?alt=media&amp;token=e518a554-2b2b-4a14-8a55-a838f83eac2a" alt=""><figcaption></figcaption></figure>

#### Shadow Parameters

* **Cast Shadow**\
  Toggle that determines whether objects cast shadows.

  Default: Disabled
* **Resolution**\
  Determines the quality level of the shadow map.

  Default: Medium

  Options: High / Ultra

<figure><img src="https://2043086618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqs5xBLyTN4cVMplr2ANM%2Fuploads%2FJ05w5JhIXUN8hJyIdy1l%2F%E7%82%B9%E5%85%89%E6%BA%90%E9%98%B4%E5%BD%B1%E5%8F%82%E6%95%B0-%E8%8B%B1%E6%96%87.gif?alt=media&amp;token=3eaecdc5-9634-4909-833c-47b16e5b55ed" alt=""><figcaption></figcaption></figure>

***

## Spot Light

A **Spot Light** emits a cone-shaped beam from a point in a specific direction, similar to a flashlight or stage spotlight. It is ideal for highlighting specific objects or creating strong light–shadow contrast in a scene.

### Special Parameters

#### Basic Parameters

* **Position**\
  Defines the spatial position of the spot light in the 3D scene coordinate system (X/Y/Z).\
  The position can be adjusted freely within the canvas space.
* **Rotation**\
  Determines the direction of the light rays, which controls the direction and length of shadows.

  Default value: (0°, 0°, 0°)

  Adjustable range: `-360° to 360°` (supports continuous rotation beyond 360°)

<figure><img src="https://2043086618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqs5xBLyTN4cVMplr2ANM%2Fuploads%2FQHa1JSA7Kcfc7rA5q6gn%2F%E8%81%9A%E5%85%89%E7%81%AF%E5%9F%BA%E7%A1%80%E5%8F%82%E6%95%B0-%E8%8B%B1%E6%96%87.webp?alt=media&amp;token=96e7dba9-af65-4c79-94a8-ff274ec52ee9" alt=""><figcaption></figcaption></figure>

#### Style Parameters

* **Color**\
  Select the main color of the light using the color picker.\
  Default color: `#ffd17c`
* **Intensity**\
  Controls the brightness of the light source. Higher values produce brighter light.

  Default value: 3

  Adjustable range: `0 – 10`
* **Distance**\
  Defines the maximum effective illumination distance. Larger values increase the lighting coverage.\
  Default value: 0.1

  Adjustable range: `0.1 – 100`
* **Angle**\
  Controls how concentrated the light beam is. Smaller angles produce a more focused beam.

  Default value: 30°

  Adjustable range: `0° – 90°`
* **Penumbra**\
  Controls the softness of the spotlight’s edge. Higher values produce softer edges.

  Default value: 0.2

  Adjustable range: `0 – 1`
* **Attenuation**\
  Controls how quickly the light fades with distance. Higher values make distant areas darker.

  Default value: 2

  Adjustable range: `0 – 5`

<figure><img src="https://2043086618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqs5xBLyTN4cVMplr2ANM%2Fuploads%2FQnp2JlfzGkpdtWMpn1qT%2F%E8%81%9A%E5%85%89%E7%81%AF%E6%A0%B7%E5%BC%8F%E5%8F%82%E6%95%B0-%E8%8B%B1%E6%96%87.webp?alt=media&amp;token=2403c8e9-14d8-444b-883a-97447f9d1ce7" alt=""><figcaption></figcaption></figure>

#### Shadow Parameters

* **Cast Shadow**\
  Toggle that determines whether objects cast shadows.

  Default: Disabled
* **Resolution**\
  Determines the quality level of the shadow map.

  Default: Medium

  Options: High / Ultra

<figure><img src="https://2043086618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqs5xBLyTN4cVMplr2ANM%2Fuploads%2FtK9ndux5zc0XeyUUMsCM%2F%E8%81%9A%E5%85%89%E7%81%AF%E9%98%B4%E5%BD%B1%E5%8F%82%E6%95%B0-%E8%8B%B1%E6%96%87.gif?alt=media&amp;token=ac52f035-339e-4c5d-8054-f828cb4826f0" alt=""><figcaption></figcaption></figure>
