> For the complete documentation index, see [llms.txt](https://seasidestudios.gitbook.io/seaside-studios/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://seasidestudios.gitbook.io/seaside-studios/3d-shader/fast-lighting.md).

# Fast Lighting

The Fast Lighting system provides an optimized lighting solution for low-end platforms like mobile and VR, where performance is critical. By eliminating traditional scene lights and using a specialized lighting configuration, you can achieve visually appealing results while maintaining excellent single-pass performance.

### Overview and Benefits

Fast Lighting is designed specifically for scenarios where:

* You need to maximize performance on mobile or VR platforms
* You want consistent lighting with minimal GPU overhead
* You're targeting lower-end hardware that struggles with traditional lighting

The key advantage of this system is that you can maintain visual quality while significantly reducing rendering overhead. When properly configured with no shadows, Fast Lighting delivers exceptional single-pass performance.

### Setup Process

Setting up Fast Lighting is a straightforward process:

1. **Remove Scene Lights**: First, ensure there are no traditional lights in your scene. This prevents performance overhead from standard lighting calculations and ensures all objects use the Fast Lighting system consistently.
2. **Enable Fast Lighting Light Mode**: In your material inspector, locate the "Light Mode" section and select "Fast Lighting" from the dropdown menu:<br>

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

3. **Add FastLightingConfigurator Component**: Add this component to any GameObject in your scene (preferably an empty GameObject dedicated to lighting configuration):

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

### Configuring Fast Lighting

Once you've added the FastLightingConfigurator component, you just need to change the Global Light Direction.

### Performance Tips

To get the best performance from Fast Lighting:

1. **Disable Shadows Completely**: For maximum performance, ensure shadows are turned off in both the Fast Lighting configurator and in your materials.
2. **Limit Material Complexity**: While Fast Lighting is efficient, combining it with many other complex shader effects will still impact performance. Use only the effects you need.
3. **Monitor Performance**: Use the Unity Profiler to verify that you're getting the expected performance benefits from Fast Lighting.


---

# 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://seasidestudios.gitbook.io/seaside-studios/3d-shader/fast-lighting.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.
