Skip to content

Commit ecae6b6

Browse files
committed
get skybox template compiling
1 parent ed2488e commit ecae6b6

File tree

1 file changed

+2
-1
lines changed
  • templates/skybox-template/src

1 file changed

+2
-1
lines changed

templates/skybox-template/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use sokol_bindings::{
66
Int,
77
};
88
use math::{
9+
angle::{Radians, TAU},
910
mat4::Mat4,
1011
vec3::{Vec3, vec3},
1112
};
@@ -141,7 +142,7 @@ fn frame(state: &mut State) {
141142
let h = sapp::height();
142143

143144
/* compute model-view-projection matrix for vertex shader */
144-
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));
145146
let view = get_view_matrix(state);
146147
let view_proj = proj * view;
147148

0 commit comments

Comments
 (0)