Skip to content

Modernized Lighting System of Unreal Gold / Tournament (1996-1999) for Unity.

License

Notifications You must be signed in to change notification settings

Henry00IS/DynamicLighting

Repository files navigation

Dynamic Lighting for Unity.

This package brings an old school lighting technique to Unity.

It is inspired by Tim Sweeney's lighting system in Unreal Gold and Unreal Tournament (1996-1999).

Showcasing Dynamic Lighting in Unity with a classic Unreal map the Vortex Rikers

This lighting technique precomputes unique shadows for each light source, allowing dynamic adjustments such as color changes, flickering, or even water refraction. This level of realtime customization is not possible with Unity's baked lighting alone. It utilizes straightforward custom shaders similar to Unity's Standard shader and is compatible with the built-in render pipeline. The minimum Unity Editor requirement is 2021.2.18f1.

To raytrace the scene, game objects must be marked as static.

High Quality Shadows Volumetric Fog
Higher shadow quality than Unreal Volumetric fog surrounding light sources
Bounce Lighting Transparency
Bounce lighting demo in Sponza Transparent texture raytracing demo with a works on my machine funny texture
Metallic PBR Mixable with Progressive Lightmapper
Metallic PBR workflow support Progressive Lightmapper using Dynamic Lighting

Cons

The main limitation of this technique is that lights with shadows cannot change their position. If they have to move, they become real-time lights that cast no shadows and can potentially shine through walls, if their radius allows for it. Depending on the use case and level design, this may never be a problem at all.

However, real-time shadows are supported and can be used sparingly to overcome this limitation.

Installation Instructions:

Add the following line to your Unity Package Manager:

Unity Package Manager

https://github.com/Henry00IS/DynamicLighting.git

Support:

Feel free to join my Discord server and let's talk about it.

If you found this package useful, please consider making a donation or supporting me on Patreon. Your donations are a tremendous encouragement for the continued development and support of this package. 😁

Support me on Patreon

Support me on Ko-fi

paypal