Position the camera better so that the scaled volume is actually visible

This commit is contained in:
Martin committed 2025-01-08 22:57:06 +01:00
1 parent d3b88aed30
commit c5b8b6cff0
4 files changed
+16 -16

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@ __device__ Vec3 d_cameraDir;
__device__ Vec3 d_cameraUp;
__device__ Point3 d_lightPos;
Point3 h_cameraPos = Point3::init(-500.0f, 200.0f, 100.0f);
Point3 h_cameraPos = Point3::init(-300.0f, 200.0f, -300.0f);
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, 1.0, 0.0).normalize();
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.