A better viewing angle
This commit is contained in:
parent
378511bedf
commit
9576078f9c
|
|
@ -18,7 +18,7 @@ fn make_viewport(w: u32, h: u32) -> [Vertex; 4] {
|
||||||
let w = w as f32;
|
let w = w as f32;
|
||||||
let h = h as f32;
|
let h = h as f32;
|
||||||
let (w, h) = (1.0f32.max(w / h), 1.0f32.max(h / w));
|
let (w, h) = (1.0f32.max(w / h), 1.0f32.max(h / w));
|
||||||
let r = 3.0f32;
|
let r = 1.0f32;
|
||||||
let screen_coord = [vec2(-h, -w), vec2(h, -w), vec2(-h, w), vec2(h, w)];
|
let screen_coord = [vec2(-h, -w), vec2(h, -w), vec2(-h, w), vec2(h, w)];
|
||||||
let eye = vec3(-r, 0.0, 0.0);
|
let eye = vec3(-r, 0.0, 0.0);
|
||||||
let world_coord = [
|
let world_coord = [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user