function plotCameraRays(ax1,position,imageBorderWorld,...
    IntersectionsImageborderGlass,IntersectionsImageborderWater,IntersectionsImageborderGround)

% Camera
plot3(ax1,position(1),position(2),position(3),'ro');

% Image Corners
borderRaysNumber = 10;
CornersWorld = imageBorderWorld(:,1:borderRaysNumber:end);
IntersectionsCornersGlass = IntersectionsImageborderGlass(:,1:borderRaysNumber:end);
IntersectionsCornersWater = IntersectionsImageborderWater(:,1:borderRaysNumber:end);
IntersectionsCornersGround = IntersectionsImageborderGround(:,1:borderRaysNumber:end);
for i = 1:4
    plot3(ax1,[CornersWorld(1,i),position(1),IntersectionsCornersGlass(1,i),IntersectionsCornersWater(1,i),IntersectionsCornersGround(1,i)],...
        [CornersWorld(2,i),position(2),IntersectionsCornersGlass(2,i),IntersectionsCornersWater(2,i),IntersectionsCornersGround(2,i)],...
        [CornersWorld(3,i),position(3),IntersectionsCornersGlass(3,i),IntersectionsCornersWater(3,i),IntersectionsCornersGround(3,i)],'k')
end
plot3(ax1,[IntersectionsImageborderGround(1,:),IntersectionsImageborderGround(1,1)],...
    [IntersectionsImageborderGround(2,:),IntersectionsImageborderGround(2,1)],...
    [IntersectionsImageborderGround(3,:),IntersectionsImageborderGround(3,1)],'k-')

end

