Skip to content

Commit

Permalink
Improve camera scale
Browse files Browse the repository at this point in the history
  • Loading branch information
thetarnav committed Apr 10, 2024
1 parent 3490254 commit f5b8a17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/lighting.odin
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ lighting_frame :: proc(delta: f32) {
gl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT)

camera_mat: Mat4 = 1
camera_mat *= mat4_translate({0, 0, 800 - 700 * (scale/1.2)})
camera_mat *= mat4_translate({0, 0, 800 - 800 * scale})
camera_mat = glm.inverse_mat4(camera_mat)

view_mat := glm.mat4PerspectiveInfinite(
Expand Down

0 comments on commit f5b8a17

Please sign in to comment.