mirror of
https://github.com/MartinOpat/cuda-based-raytrace.git
synced 2025-06-07 02:13:10 +02:00
Made camera not upside down
This commit is contained in:
1 parent
079e0797e9
commit
340efd641d
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -33,10 +33,10 @@ __device__ Point3 d_lightPos;
|
||||
__device__ Color3 d_backgroundColor;
|
||||
|
||||
// Point3 h_cameraPos = Point3::init(300.0f, 200.0f, -700.0f); // Camera for full data set
|
||||
Point3 h_cameraPos = Point3::init(50.0f, -50.0f, -75.0f); // Camera for partially trimmed data set (TODO: Probably upside down atm)
|
||||
Point3 h_cameraPos = Point3::init(50.0f, -50.0f, -75.0f); // Camera for partially trimmed data set
|
||||
Vec3 center = Vec3::init((float)VOLUME_WIDTH/2.0f, (float)VOLUME_HEIGHT/2.0f, (float)VOLUME_DEPTH/2.0f);
|
||||
Vec3 h_cameraDir = (center - h_cameraPos).normalize();
|
||||
Vec3 h_cameraUp = Vec3::init(0.0, 0.0, 1.0).normalize();
|
||||
Vec3 h_cameraUp = Vec3::init(0.0, 1.0, 0.0).normalize();
|
||||
Point3 h_lightPos = Point3::init(1.5, 2.0, -1.0);
|
||||
Color3 h_backgroundColor = Color3::init(0.1f, 0.1f, 0.1f);
|
||||
|
||||
|
||||