]> git.tdb.fi Git - libs/gl.git/commit
Support multiple lights in a single pass
authorMikko Rasa <tdb@tdb.fi>
Sun, 3 Oct 2021 10:57:19 +0000 (13:57 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 3 Oct 2021 16:29:55 +0000 (19:29 +0300)
commitd4b030f46c3a643e813cf31e3faa2b4f3662a160
tree07cf0067ffa16174d8bef19de1302ddf7e1b853e
parent641e5ebbda682a6df6f84a4627e3728dbcef3683
Support multiple lights in a single pass

Light direction is now computed in fragment shader because interface
variable locations can't use specialization constants.

Shadow map currently only affects the first light but will be improved
soon.
shaderlib/common.glsl
shaderlib/cooktorrance.glsl
shaderlib/msp_interface.glsl
shaderlib/phong.glsl
shaderlib/shadow.glsl
source/materials/lighting.cpp