Extend view range

This commit is contained in:
numzero 2024-09-23 00:04:16 +03:00
parent a0bfa246ec
commit 2d5c2f28d4
2 changed files with 2 additions and 2 deletions

View File

@ -162,7 +162,7 @@ fn main() {
let size = window.inner_size(); let size = window.inner_size();
let size = vec2(size.width as f32, size.height as f32).normalize() let size = vec2(size.width as f32, size.height as f32).normalize()
* std::f32::consts::SQRT_2; * std::f32::consts::SQRT_2;
let proj = make_proj_matrix(vec3(size.x, size.y, 2.), (0.125, 1024.125)); let proj = make_proj_matrix(vec3(size.x, size.y, 2.), (1., 4096.));
let my_to_gl = mat4( let my_to_gl = mat4(
vec4(0., 0., 1., 0.), vec4(0., 0., 1., 0.),

View File

@ -94,7 +94,7 @@ fn draw_ray_2(gc: &mut Vec<Line>, space: &Space, camera: Location, dir: Vec3) {
let end_pos = *pts let end_pos = *pts
.last() .last()
.expect("the starting point is always in the path"); .expect("the starting point is always in the path");
let dir_pos = end_pos + 1000.0 * path.end_dir; let dir_pos = end_pos + 10000.0 * path.end_dir;
pts.push(dir_pos); pts.push(dir_pos);
gc.push(Line::Strip(pts)); gc.push(Line::Strip(pts));
} }