Skip to content

Commit

Permalink
Fix undefined variable in project when passing a Scene
Browse files Browse the repository at this point in the history
  • Loading branch information
asinghvi17 committed May 30, 2024
1 parent f3e9013 commit 99f7299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/camera/projection_math.jl
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ function project(scenelike::SceneLike, input_space::Symbol, output_space::Symbol
output_from_clip = clip_to_space(cam, output_space)
output_f32c = inv_f32_convert_matrix(scenelike, output_space)

p4d = to_ndim(Point4{T}, to_ndim(Point3{T}, transformed, 0), 1)
p4d = to_ndim(Point4{T}, to_ndim(Point3{T}, pos, 0), 1)
transformed = output_f32c * output_from_clip * clip_from_input * input_f32c * p4d
return Point3{T}(transformed[Vec(1, 2, 3)] ./ transformed[4])
end

0 comments on commit 99f7299

Please sign in to comment.