mirror of
https://github.com/MartinOpat/cuda-based-raytrace.git
synced 2025-06-07 02:13:10 +02:00
Exported constants to their own file
This commit is contained in:
14
src/consts.h
Normal file
14
src/consts.h
Normal 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