> For the complete documentation index, see [llms.txt](https://docs.sansar.com/latest/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sansar.com/latest/creating-in-sansar/working-with-lights/working-with-lights.md).

# Working With Lights

Lights are intangible sources of light that can illuminate your scene.

### Working with lights in Sansar

<figure><img src="https://1251409636-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeFXiTZShM8YWMV94n1eV%2Fuploads%2Fgit-blob-834979cfc14b60fd6195ecff6a7eecd7ff2e5865%2FLights%20overview%2001.png?alt=media" alt=""><figcaption><p>All three types of lights interacting with an object in the scene.</p></figcaption></figure>

***

**Light types**

There are three types of lights in Sansar: directional, point, and spot lights - all of which behave differently. It is important to choose the right light in your scene to achieve the right effect. See [Light types](/latest/creating-in-sansar/working-with-lights/light-types.md) for information on the three types.

Global illumination

*Global illumination* simulates the way light reflects off objects in a scene. For more information, see [Global illumination](/latest/creating-in-sansar/working-with-lights/global-illumination.md).

**Adding lights to a scene**

To add an object to your scene, click on the object and drag it into the scene area. This action adds the object into the *scene objects* list and creates a model which you can position and edit in the scene.

**Adding lights to an object**

You can edit objects and add lights on it to make the object emit light. You can add any of the [three light types](/latest/creating-in-sansar/working-with-lights/light-types.md) on an object. See [adding lights](https://help.sansar.com/hc/en-us/articles/115002206766#Adding%20lights) under [Object editing](https://help.sansar.com/hc/en-us/articles/115002206766).

Additionally, you can [import 3D models](https://help.sansar.com/hc/en-us/articles/115000269608) with [point lights](/latest/creating-in-sansar/working-with-lights/light-types.md#point-light) already in place as part of an .fbx file.

***

#### Have more questions? Ask in our [Discord!](http://discord.gg/sansarofficial)


---

# 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.sansar.com/latest/creating-in-sansar/working-with-lights/working-with-lights.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.
