Skip to content

Commit 49f9b78

Browse files
committed
Add a missing variable for saved caches.
The missing variable could lead to strong brightness variations across frames when using saved caches
1 parent 1bca411 commit 49f9b78

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/slg/engines/caches/photongi/pgicbvh.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class PGICPhotonBvh : public IndexBvh<Photon> {
5454
template<class Archive> void serialize(Archive &ar, const u_int version) {
5555
ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(IndexBvh);
5656
ar & entryNormalCosAngle;
57+
ar & photonTracedCount;
5758
}
5859

5960
float entryNormalCosAngle;

0 commit comments

Comments
 (0)