creates a look-at view matrix * * The resulting matrix is created from the supplied look-at parameters. * This is useful for constructing a view matrix for a camera or * rendering in general. * * @name vmath.matrix4_look_at * @param eye [type:vector3] eye position * @param look_at [type:vector3] look-at position * @param up [type:vector3] up vector
| 1506 | * ``` |
| 1507 | */ |
| 1508 | static int Matrix4_LookAt(lua_State* L) |
| 1509 | { |
| 1510 | PushMatrix4(L, Matrix4::lookAt(Point3(*CheckVector3(L, 1)), Point3(*CheckVector3(L, 2)), *CheckVector3(L, 3))); |
| 1511 | return 1; |
| 1512 | } |
| 1513 | |
| 1514 | /*# creates an orthographic projection matrix |
| 1515 | * Creates an orthographic projection matrix. |
nothing calls this directly
no test coverage detected