Skip to content

Commit e7d3f53

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 e030b7b commit e7d3f53

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)