poprawka w PinHoleCamera
This commit is contained in:
parent
cedcc35eca
commit
7f8d412d8b
1 changed files with 1 additions and 1 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue