Increase depth
This commit is contained in:
parent
3d7460ac14
commit
694816bd6c
|
|
@ -64,7 +64,7 @@ impl Camera {
|
|||
vec4(0., 0., 0., 1.),
|
||||
);
|
||||
let size = view_size.normalize() * std::f32::consts::SQRT_2;
|
||||
let proj = make_proj_matrix(vec3(size.x, size.y, 2.), (1., 4096.)) * M;
|
||||
let proj = make_proj_matrix(vec3(size.x, size.y, 2.), (1., (2f32).powi(16) + 1.)) * M;
|
||||
|
||||
let mvp = proj * view_mtx;
|
||||
CameraUniform {
|
||||
|
|
|
|||
|
|
@ -127,8 +127,7 @@ fn draw_ray_2(gc: &mut Vec<Line>, space: &Space, camera: Location, dir: Vec3) {
|
|||
let end_pos = *pts
|
||||
.last()
|
||||
.expect("the starting point is always in the path");
|
||||
let dir_pos = end_pos.forward(10000.0);
|
||||
pts.push(dir_pos);
|
||||
pts.extend(itertools::iterate(end_pos, |r| r.forward(100.0)).take(1000));
|
||||
gc.push(Line::Strip(pts));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user