41 lines
1.6 KiB
C++
41 lines
1.6 KiB
C++
#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
|