right/left handed LookAt functions

This commit is contained in:
bloeys
2022-10-01 00:12:13 +04:00
parent 051f91288d
commit 69f724922d
2 changed files with 25 additions and 3 deletions

View File

@ -180,7 +180,7 @@ func main() {
camPos := gglm.NewVec3(0, 0, 3)
worldUp := gglm.NewVec3(0, 1, 0)
targetPos := gglm.NewVec3(0, 0, 0)
viewMat := gglm.LookAt(camPos, targetPos, worldUp)
viewMat := gglm.LookAtRH(camPos, targetPos, worldUp)
println(viewMat.String())
//Mat2Col