Archive 17/01/2023.

2d dynamic light system

diverlin

1-st pass: collect sprite normal map into scene normal map
2-nd pass: collect sprite diffuse map into scene diffuse map
3-rd pass: in shader combine two maps (normal map and diffuse map) to imitate the light effect