Camera-Based Lighting: How to Automatically Swap Post-Processing and Scene Lights Based on View Angle in Unity

5 de noviembre de 2026

In classic survival horror development, the camera is more than just a viewport: it is a storytelling device. When working with fixed angles, we face a major technical challenge: how to maintain consistent lighting and a striking atmosphere when each shot requires different settings?

Imagine your character moving from a gloomy hallway with thick fog to a close-up of a door where detail must be sharp and lighting warmer. If you change the global scene lighting, you will break the rest of the shots. This is where the camera-based lighting technique comes in.

The Problem with Static Lighting

In Unity, lighting and post-processing systems are usually global. You apply a Post-Processing Profile to a volume that covers the entire room. However, in games inspired by Resident Evil or Silent Hill, what works for a long shot rarely works for a close-up.

Without a dynamic system, you will be forced to find a middle ground that fails to stand out in any angle, losing that visual tension essential to the genre.

The Solution: Reaction Bridges

To solve this professionally, we need each camera to have the ability to inject its own environment parameters. At Noocturnal Games Studio, we designed Vigil – Survival Horror Fixed Camera System with this workflow in mind, using what we call the CameraPostProcessBridge.

How does the PostProcessBridge work?

Instead of modifying global settings, each fixed camera can enable or disable specific post-processing volumes at the exact moment of the cut. This allows you to:

  • Change fog density and color per shot.
  • Adjust Color Grading to highlight narrative elements in specific frames.
  • Modify Depth of Field to direct the player focus toward a clue.

Technical Implementation: Zero-Code Automation

With Vigil, you do not need to write complex trigger detection scripts. The process is purely visual:

1. Create a Post-processing Volume for a specific angle.
2. Add the CameraPostProcessBridge component to your FixedCamera.
3. Drag the volume into the Bridge reference field.

When the player enters that camera activation area, Vigil takes care of turning that volume on and the previous one off seamlessly. If you use Fade or Blend transitions, the system can even interpolate these changes to avoid jarring color shifts.

Reaction Script Example

// Vigil handles this internally, but here is the logic:
public void OnCameraActivated() {
    localPostProcessVolume.weight = 1f;
    RenderSettings.fogDensity = customFogValue;
}

Conclusion

Mastering camera-based lighting is the difference between an indie game that looks flat and a professional cinematic experience. By decoupling the atmosphere from the scene geometry, you gain total control over what the player feels in every frame.


Level up your game today

Get this asset on the Unity Asset Store.