poprawka w PinHoleCamera

This commit is contained in:
zymon 2024-01-23 22:50:51 +01:00
parent cedcc35eca
commit 7f8d412d8b

View file

@ -49,7 +49,7 @@ function get_rays(camera::PinHoleCamera, resolution::Tuple{I, I}) where {I<:Inte
X, Y = camera.size
B = camera.base
Nx, Ny = resolution
[Ray(origin, B*Vec3(x, y, -d)) for y = LinRange(Y/2, -Y/2, Ny), x = LinRange(-X/2, X/2, Nx)]
[Ray(origin, B*Vec3(x, y, -d)) for y = LinRange(Y/2, -Y/2, Ny), x = LinRange(X/2, -X/2, Nx)]
end
struct Ray{T<:AbstractFloat}