Exemple #1
0
func (camera *Camera) SetCameraFromLookAt(eye mgl.Vec3, center mgl.Vec3, up mgl.Vec3) {
	camera.SetView(mgl.LookAtV(eye, center, up))
}
Exemple #2
0
func NewCameraFromLookAt(eye mgl.Vec3, center mgl.Vec3, up mgl.Vec3) *Camera {
	return NewCameraFromMat4(mgl.LookAtV(eye, center, up))
}