Compare commits
2 Commits
a0bfa246ec
...
26b7794159
| Author | SHA1 | Date | |
|---|---|---|---|
| 26b7794159 | |||
| 2d5c2f28d4 |
|
|
@ -162,7 +162,7 @@ fn main() {
|
|||
let size = window.inner_size();
|
||||
let size = vec2(size.width as f32, size.height as f32).normalize()
|
||||
* 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(
|
||||
vec4(0., 0., 1., 0.),
|
||||
|
|
|
|||
|
|
@ -94,7 +94,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 + 1000.0 * path.end_dir;
|
||||
let dir_pos = end_pos + 10000.0 * path.end_dir;
|
||||
pts.push(dir_pos);
|
||||
gc.push(Line::Strip(pts));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
//! Functions used to make metrics.
|
||||
|
||||
use crate::mathx::FloatExt2;
|
||||
|
||||
pub trait Limiter {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
//! Utility functions to work with metrics.
|
||||
|
||||
use crate::{
|
||||
mathx::MatExt as _,
|
||||
riemann::{trace_iter, Metric},
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user