func (c *Camera) SetOrientation(orientation mgl32.Quat) { direction := orientation.Rotate(mgl32.Vec3{1, 0, 0}) c.Lookat = c.Translation.Add(direction) }
func (l *Light) SetOrientation(orientation mgl32.Quat) { if l.LightType == DIRECTIONAL { l.Direction = orientation.Rotate(mgl32.Vec3{1, 0, 0}) } }