Exported more constants and removed old code

This commit is contained in:
2024-12-30 10:23:02 +01:00
parent c7a871d9a4
commit 98935c34e4
2 changed files with 13 additions and 66 deletions

View File

@@ -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