Skip to content

Implement directional light

Rahul Sharma requested to merge add-directional-light into master

This adds a directional light to the Cube object to allow a world space light source to be defined which makes all objects light up from a specific direction. Currently this is implemented as an optional (i.e. can choose position or direction), but will be implemented in a tidier way in the future to allow for various light sources to be used at the same time.

You can see how it's implemented in this image: Screenshot_2021-04-14_213417

Merge request reports