]> git.tdb.fi Git - libs/gl.git/commit
Use persistent uniform blocks for Camera, Lighting and Clipping
authorMikko Rasa <tdb@tdb.fi>
Sat, 8 May 2021 14:58:11 +0000 (17:58 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 9 May 2021 07:53:56 +0000 (10:53 +0300)
commita275d25eccad43716c5dcf91f8bc4af2a53c0445
tree87f09a7ff0f3229a3f474f8c2c233f6d816b69c1
parenta77629d781eeb789870470c5ebdbd4b691e1b138
Use persistent uniform blocks for Camera, Lighting and Clipping

Now that the relevant calculations are done in world space, the values
of these uniforms don't need to be calculated on a per-frame basis.
13 files changed:
source/core/clipping.cpp
source/core/clipping.h
source/core/clipplane.cpp
source/core/clipplane.h
source/materials/light.cpp
source/materials/light.h
source/materials/lighting.cpp
source/materials/lighting.h
source/render/camera.cpp
source/render/camera.h
source/render/renderer.cpp
source/render/renderer.h
source/resources/resources.cpp