mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-02 00:32:45 +03:00
feat(ui): implement CSimpleModel_SetFogNear
This commit is contained in:
parent
5aa6f3c887
commit
b211d38f7c
@ -143,7 +143,16 @@ int32_t CSimpleModel_GetFogColor(lua_State* L) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int32_t CSimpleModel_SetFogNear(lua_State* L) {
|
int32_t CSimpleModel_SetFogNear(lua_State* L) {
|
||||||
WHOA_UNIMPLEMENTED(0);
|
auto type = CSimpleModel::GetObjectType();
|
||||||
|
auto model = static_cast<CSimpleModel*>(FrameScript_GetObjectThis(L, type));
|
||||||
|
|
||||||
|
if (!lua_isnumber(L, 2)) {
|
||||||
|
return luaL_error(L, "Usage: %s:SetFogNear(value)", model->GetDisplayName());
|
||||||
|
}
|
||||||
|
|
||||||
|
model->m_fogNear = static_cast<float>(lua_tonumber(L, 2));
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t CSimpleModel_GetFogNear(lua_State* L) {
|
int32_t CSimpleModel_GetFogNear(lua_State* L) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user