Skip to content

Lumak/Urho3D-1.4-SphericalHarmonicLighting

Repository files navigation

Urho3D-1.4-SphericalHarmonicLighting

Spherical Harmonic Lighting implementation written with Urho3D engine version 1.4.

Information

Spherical Harmonic Lighting based on: spherical-harmonic-lighting.pdf

This is a simple implementation of the SHL using a single static light and static models.
This example uses low polygon mesh and may not look like other examples of SHL, so you may want to replace the models with your own high polygon mesh to see a better diffuse transfer.

Implementation: 1 - diffused unshadowed transfer 2 - shadowed diffuse transfer 3 - diffuse interreflected transfer

To build it in Urho3D 1.4: This implementation is built as a Urho3D sample. Copy the source folder into your Urho3D/ folder, copy the bin folder into your build/bin folder, and add 61_SHLighting in your Source/Samples/CMakeLists.txt.

Screenshots

Normal lighting: alt tag

Diffused unshadowed transfer: alt tag

Shadowed diffuse transfer: alt tag

Diffuse interreflected transfer: alt tag

License

The MIT License (MIT)

About

Testing spherical harmonic lighting based on the spherical-harmonic-lighting.pdf

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages