File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
include/neural-graphics-primitives Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -285,7 +285,7 @@ inline __host__ __device__ Ray pixel_to_ray(
285285 };
286286 head_pos *= dataset_scale;
287287 head_pos += shift;
288- dir -= shift / parallax_shift.z (); // we could use focus_z here in the denominator. for now, we pack m_scale in here.
288+ dir -= shift / parallax_shift.z (); // we could use focus_z here in the denominator. for now, we pack m_scale in here.
289289 }
290290 else if (camera_mode == ECameraMode::Environment){
291291 // Camera convention: XYZ <-> Right Down Front
@@ -321,7 +321,7 @@ inline __host__ __device__ Ray pixel_to_ray(
321321 dir.head <2 >() += read_image<2 >(distortion_data, distortion_resolution, uv);
322322 }
323323 head_pos += shift;
324- dir -= shift / parallax_shift.z (); // we could use focus_z here in the denominator. for now, we pack m_scale in here.
324+ dir -= shift / parallax_shift.z (); // we could use focus_z here in the denominator. for now, we pack m_scale in here.
325325 }
326326
327327 dir = camera_matrix.block <3 , 3 >(0 , 0 ) * dir;
You can’t perform that action at this time.
0 commit comments