]> git.tdb.fi Git - libs/gl.git/commit
Use a per-camera cache in ZSortedScene
authorMikko Rasa <tdb@tdb.fi>
Mon, 14 Mar 2022 07:10:12 +0000 (09:10 +0200)
committerMikko Rasa <tdb@tdb.fi>
Mon, 14 Mar 2022 07:10:12 +0000 (09:10 +0200)
commit23e368883b01ebb08ba2df56db91f19f26cf990d
tree8d125aa0dbafe6c6fbf7e1cbe2b07348a9d9bb1f
parentea708c5b2fad7e5a9f1787fa1422bcf7fab69dc4
Use a per-camera cache in ZSortedScene

It's very common to have multiple cameras in a scene due to effects like
shadow and environment maps.  Using a single cache for all of them is
detrimental since the order will be different for each.
source/render/zsortedscene.cpp
source/render/zsortedscene.h