Skip to content

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.

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.

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 Model: In your material inspector, find Light Model and select FastLighting from the dropdown menu:
Light Model set to FastLighting in the Material Inspector, with its note asking for the configurator component
  1. Add the Fast Light Configurator Component: Add this component to any GameObject in your scene (preferably an empty GameObject dedicated to lighting configuration):
The Fast Light Configurator component with its Light Color field

The light comes from the component, not from a Light in the scene. Rotate the component’s GameObject to aim the light, the same way you would a Directional Light, and set Light Color on the component.

The demo's floor, test shape and Chomper with no lights in the scene, all taking their light from the Fast Light Configurator while its GameObject rotates and its Light Color warms

To get the best performance from Fast Lighting:

  1. Disable Shadows Completely: Fast Lighting never receives shadows, so turn off Cast Shadows on your materials as well.
  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.