First commit

This commit is contained in:
2026-10-11 19:01:42 +03:00
parent 35526d0f28
commit 52e5e6a73e
18 changed files with 9342 additions and 62 deletions
+41
View File
@@ -0,0 +1,41 @@
#include "prrpm.h"
namespace PRRPM
{
ui32 imageWidth = 800;
ui32 imageHeight = 800;
ui32 numberOfPhotons = 1000;
ui32 numberOfPhotonPass = 1000;
ui32 numberOfBounces = 5;
std::string outFileName = "output.bmp";
std::vector<Vector3d> imageBufferList;
bool isLightOn = true;
bool isPhotonMapping = true;
bool isGUI = true;
Vector3d neighborsDirection[27] = {
Vector3d(0.0, 0.0, 0.0), Vector3d(0.004, 0.0, 0.0),
Vector3d(-0.004, 0.0, 0.0), Vector3d(0.0, 0.004, 0.0),
Vector3d(0.0, -0.004, 0.0), Vector3d(0.004, 0.004, 0.0),
Vector3d(-0.004, 0.004, 0.0), Vector3d(0.004, -0.004, 0.0),
Vector3d(-0.004, -0.004, 0.0),
Vector3d(0.004, 0.0, 0.004), Vector3d(-0.004, 0.0, 0.004),
Vector3d(0.0, 0.004, 0.004), Vector3d(0.0, -0.004, 0.004),
Vector3d(0.004, 0.004, 0.004), Vector3d(-0.004, 0.004, 0.004),
Vector3d(0.004, -0.004, 0.004), Vector3d(-0.004, -0.004, 0.004),
Vector3d(0.004, 0.0, -0.004), Vector3d(-0.004, 0.0, -0.004),
Vector3d(0.0, 0.004, -0.004), Vector3d(0.0, -0.004, -0.004),
Vector3d(0.004, 0.004, -0.004), Vector3d(-0.004, 0.004, -0.004),
Vector3d(0.004, -0.004, -0.004), Vector3d(-0.004, -0.004, -0.004),
Vector3d(0.0, 0.0, -0.004), Vector3d(0.0, 0.0, 0.004)};
std::vector<Triangle> triangleList;
std::vector<Sphere> sphereList;
std::vector<LightSource> lightSourcesList;
std::vector<IntersectionPoint> intersectionPointsList;
std::vector<IntersectionPoint> secondIntersectionPointsList;
std::vector<int> hastValueList;
} // namespace PRRPM