Skip to content

Commit

Permalink
radiancehints.h const -> constexpr for #210
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Jun 6, 2021
1 parent 086c443 commit bf540d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/engine/render/radiancehints.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#define RADIANCEHINTS_H_

//note that radiance hints is the term for the mechanism by which global illumination is done
const int rhmaxsplits = 4; //maximum number of times that radiance hints can split to increase resolution (note exponential increase in nodes)
const int rhmaxgrid = 64; //subdivision count for radiance hints
constexpr int rhmaxsplits = 4; //maximum number of times that radiance hints can split to increase resolution (note exponential increase in nodes)
constexpr int rhmaxgrid = 64; //subdivision count for radiance hints

extern int rhrect, rhgrid, rhsplits, rhborder, rhprec, rhtaps, rhcache, rhforce, rsmprec, rsmdepthprec, rsmsize;
extern int gi, gidist;
Expand Down

0 comments on commit bf540d8

Please sign in to comment.