huwb / lightflood

Experimental progressive GI renderer in Unity using physics raycasts for light rays

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lightflood

Experimental progressive GI renderer in Unity using physics raycasts for light rays

Teaser

Overview

This is a hacky experimental CPU progressive lightmapper. Geometry is represented as collideable quads. Quads because lightmap UVs become trivial, and collideable because rays are cast using Physics.Raycast.

None of this is highly performant (although it does update interactively for small scenes), nor is it highly suitable for production scenarios in its current state. The primary goal here was to have fun and make something lightweight and easy to experiment with.

Instructions

The scene should 'just work', last opened in Unity 5.5.

Enable or disable gameobjects in the scene to change it as desired - no scene configuration etc is required, everything is dynamic.

You can fly around with WASD/arrow keys. Press space to shoot bouncy spheres of light.

About

Experimental progressive GI renderer in Unity using physics raycasts for light rays

License:MIT License


Languages

Language:C# 88.0%Language:GLSL 12.0%