mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
add doc/**/cameras.md & update cameras library
This commit is contained in:
parent
2fe25f5dd5
commit
012e81d4c9
6 changed files with 169 additions and 2 deletions
|
|
@ -58,10 +58,10 @@ static void setter_zoom(lua::State* L, Camera& camera, int idx) {
|
|||
}
|
||||
|
||||
static int getter_fov(lua::State* L, const Camera& camera) {
|
||||
return lua::pushnumber(L, camera.getFov());
|
||||
return lua::pushnumber(L, glm::degrees(camera.getFov()));
|
||||
}
|
||||
static void setter_fov(lua::State* L, Camera& camera, int idx) {
|
||||
camera.setFov(lua::tonumber(L, idx));
|
||||
camera.setFov(glm::radians(lua::tonumber(L, idx)));
|
||||
}
|
||||
|
||||
static int getter_perspective(lua::State* L, const Camera& camera) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue