mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
add mat4.look_at(...)
This commit is contained in:
parent
4c8ae465c7
commit
dc926ce4df
3 changed files with 35 additions and 0 deletions
|
|
@ -115,6 +115,15 @@ mat4.decompose(m: matrix)
|
|||
}
|
||||
```
|
||||
|
||||
## Look at point - *mat4.look_at(...)*
|
||||
|
||||
```lua
|
||||
-- creates a view matrix from the 'eye' point to the 'center' point with up vector specified
|
||||
mat4.look_at(eye: vec3, center: vec3, up: vec3)
|
||||
-- writes the view matrix to dst
|
||||
mat4.look_at(eye: vec3, center: vec3, up: vec3, dst: matrix)
|
||||
```
|
||||
|
||||
## Casting to string - *mat4.tostring(...)*
|
||||
|
||||
```lua
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue