larspensjo/ephenation-client

Improve specular glare in shadows

Opened this issue · 0 comments

Currently, there is specular glare in shadows, or below ground. It looks ugly.

Specular glare should be used where there is direct sun light. There is information in the G-buffer whether a pixel can be reached by the sun, but no information if that pixel is now dynamically or statically shadowed. The lights buffer does not distinguish between sun and lamps.