Exported constants to their own file

This commit is contained in:
Martin committed 2024-12-30 09:48:27 +01:00
1 parent daf19578e7
commit 8f23b7edec
2 files changed
+15 -10

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
#ifndef CONSTS_H
#define CONSTS_H
// TODO: Eventually, export this into a better place (i.e., such that we do not have to recompile every time we change a parameter)
const int VOLUME_WIDTH = 49;
const int VOLUME_HEIGHT = 51;
const int VOLUME_DEPTH = 42;
const int IMAGE_WIDTH = 2560;
const int IMAGE_HEIGHT = 1440;
const int SAMPLES_PER_PIXEL = 8; // TODO: Right now uses simple variance, consider using something more advanced (e.g., some commonly-used noise map)
#endif // CONSTS_H
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.