mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(ui): implement Script_GetTerrainMip
This commit is contained in:
parent
1eb97f5bb3
commit
9bebe62243
@ -291,7 +291,11 @@ int32_t Script_SetGamma(lua_State* L) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int32_t Script_GetTerrainMip(lua_State* L) {
|
int32_t Script_GetTerrainMip(lua_State* L) {
|
||||||
WHOA_UNIMPLEMENTED(0);
|
auto shadowLevelVar = CVar::Lookup("shadowLevel");
|
||||||
|
|
||||||
|
lua_pushnumber(L, 1.0 - shadowLevelVar->GetInt());
|
||||||
|
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t Script_SetTerrainMip(lua_State* L) {
|
int32_t Script_SetTerrainMip(lua_State* L) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user