Esempio n. 1
0
func (r *Receiver) Reshape(window *glfw.Window, width, height int) {
	aspectRatio := loop.WindowAspectRatio(window)
	r.Data.Projection = glm.Perspectived(r.Constants.Fov, aspectRatio, r.Constants.Near, r.Constants.Far)
}
Esempio n. 2
0
func (r *Receiver) Reshape(window *glfw.Window, width, height int) {
	aspectRatio := gameloop.WindowAspectRatio(window)
	fov := r.Constants.PlayerFOV
	r.Data.Projection = glm.Perspectived(fov, aspectRatio, r.Constants.PlayerViewNear, r.Constants.PlayerViewFar)
}