mirror of
https://github.com/MartinOpat/cuda-based-raytrace.git
synced 2025-06-07 02:13:10 +02:00
Exported more constants and removed old code
This commit is contained in:
11
src/consts.h
11
src/consts.h
@@ -1,6 +1,8 @@
|
||||
#ifndef CONSTS_H
|
||||
#define CONSTS_H
|
||||
|
||||
#include "linalg/vec.h"
|
||||
|
||||
// --------------------------- Basic Constants ---------------------------
|
||||
const int VOLUME_WIDTH = 49;
|
||||
const int VOLUME_HEIGHT = 51;
|
||||
@@ -19,6 +21,8 @@ const int SAMPLES_PER_PIXEL = 8; // TODO: Right now uses simple variance, consi
|
||||
const float alphaAcumLimit = 0.65f; // TODO: Idk what a good accumulation value is
|
||||
const float minAllowedDensity = 0.001f;
|
||||
|
||||
float stepSize = 0.002f;
|
||||
|
||||
|
||||
// --------------------------- Illumination Constants ---------------------------
|
||||
const double ambientStrength = 0.3;
|
||||
@@ -26,4 +30,11 @@ const double diffuseStrength = 0.8;
|
||||
const double specularStrength = 0.5;
|
||||
const int shininess = 32;
|
||||
|
||||
// Camera and Light
|
||||
Vec3 cameraPos(-0.7, -1.0, -2.0);
|
||||
Vec3 cameraDir(0.4, 0.6, 1.0);
|
||||
Vec3 cameraUp(0.0, 1.0, 0.0);
|
||||
float fov = 60.0f * (M_PI / 180.0f);
|
||||
Vec3 lightPos(1.5, 2.0, -1.0);
|
||||
|
||||
#endif // CONSTS_H
|
||||
Reference in New Issue
Block a user