leetvr / hotham

Hotham is a tool for creating incredible standalone VR games.
Apache License 2.0
389 stars 28 forks source link

[Bug] Don't apply ambient occlusion to direct lighting #416

Open kanerogers opened 1 year ago

kanerogers commented 1 year ago

Background

As @rasmusgo mentioned in #415 , we shouldn't be applying Ambient Occlusion to direct lights. I mean, it's right there in the name ambient, but I shouldn't be expected to read words or apply their meanings correctly. So I checked the spec, and (emphasis mine)..

The occlusion texture; it indicates areas that receive less indirect lighting from ambient sources. Direct lighting is not affected

Okay then. Guess we better fix it.

TODO