Compare commits

..

No commits in common. "26b77941596bffb3c396dffb9af9a453b26abb67" and "a0bfa246ec15d9a132e13945314afed4b7eef309" have entirely different histories.

4 changed files with 2 additions and 6 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.), (1., 4096.)); let proj = make_proj_matrix(vec3(size.x, size.y, 2.), (0.125, 1024.125));
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 + 10000.0 * path.end_dir; let dir_pos = end_pos + 1000.0 * path.end_dir;
pts.push(dir_pos); pts.push(dir_pos);
gc.push(Line::Strip(pts)); gc.push(Line::Strip(pts));
} }

View File

@ -1,5 +1,3 @@
//! Functions used to make metrics.
use crate::mathx::FloatExt2; use crate::mathx::FloatExt2;
pub trait Limiter { pub trait Limiter {

View File

@ -1,5 +1,3 @@
//! Utility functions to work with metrics.
use crate::{ use crate::{
mathx::MatExt as _, mathx::MatExt as _,
riemann::{trace_iter, Metric}, riemann::{trace_iter, Metric},