Пример #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)
}
Пример #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)
}