We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed2488e commit ecae6b6Copy full SHA for ecae6b6
templates/skybox-template/src/main.rs
@@ -6,6 +6,7 @@ use sokol_bindings::{
6
Int,
7
};
8
use math::{
9
+ angle::{Radians, TAU},
10
mat4::Mat4,
11
vec3::{Vec3, vec3},
12
@@ -141,7 +142,7 @@ fn frame(state: &mut State) {
141
142
let h = sapp::height();
143
144
/* compute model-view-projection matrix for vertex shader */
- let proj = Mat4::perspective(60., w as f32/h as f32, (NEAR, FAR));
145
+ let proj = Mat4::perspective(Radians(TAU / 6.), w as f32/h as f32, (NEAR, FAR));
146
let view = get_view_matrix(state);
147
let view_proj = proj * view;
148
0 commit comments