dcarlus / hARMful

Libraries for programming video games and interactive 2D/3D applications.
https://dcarlus.github.io/hARMful/
GNU General Public License v3.0
0 stars 0 forks source link

Directional lights: different results between forward and deferred rendering #6

Closed dcarlus closed 4 years ago

dcarlus commented 5 years ago

The shading of directional lights is not the same in deferred and forward rendering. Point lights does not seem to be affected by this bug.

It appears the bug is in forward rendering mode and deferred rendering is right.

Here with only a directional light.

Forward forward

Deferred deferred

dcarlus commented 4 years ago

Forward rendering is obsolote. Use deferred rendering instead (better performances, better shading).