Path traced light, using the code device

Lately I’ve been trying to code up a copy of the bake lighting device using the code device. Quickly after I’ve been adding features to the device to make rendering better.

I Started by implementing basic ray traced light to a sun that is positioned by parameters

I added path traced bounce light to make colors bleed onto nearby surfaces

Then I added soft shadows that gets blurred with the distance from the object casting the shadow

Then I implemented emissive textures to have part of the scene emit their own light

Showcase of path traced light emitters in a little scene

Little volcano scene

So far it has been a very fun project and I hope to add more features and improve performance in the future.

5 Likes