Skip to content

Commit

Permalink
🎨 format space
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasParistech committed Jun 23, 2022
1 parent 891d858 commit 9963578
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/neural-graphics-primitives/common_device.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ inline __host__ __device__ Ray pixel_to_ray(
};
head_pos *= dataset_scale;
head_pos += shift;
dir -= shift / parallax_shift.z(); // we could use focus_z here in the denominator. for now, we pack m_scale in here.
dir -= shift / parallax_shift.z(); // we could use focus_z here in the denominator. for now, we pack m_scale in here.
}
else if(camera_mode == ECameraMode::Environment){
// Camera convention: XYZ <-> Right Down Front
Expand Down Expand Up @@ -321,7 +321,7 @@ inline __host__ __device__ Ray pixel_to_ray(
dir.head<2>() += read_image<2>(distortion_data, distortion_resolution, uv);
}
head_pos += shift;
dir -= shift / parallax_shift.z(); // we could use focus_z here in the denominator. for now, we pack m_scale in here.
dir -= shift / parallax_shift.z(); // we could use focus_z here in the denominator. for now, we pack m_scale in here.
}

dir = camera_matrix.block<3, 3>(0, 0) * dir;
Expand Down

0 comments on commit 9963578

Please sign in to comment.