Skip to content

Commit 98c6f78

Browse files
authored
get_sky(): return fog_color as well
1 parent cf69623 commit 98c6f78

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/script/lua_api/l_object.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2297,6 +2297,8 @@ int ObjectRef::l_get_sky(lua_State *L)
22972297
lua_setfield(L, -2, "fog_distance");
22982298
lua_pushnumber(L, skybox_params.fog_start >= 0 ? skybox_params.fog_start : -1.0f);
22992299
lua_setfield(L, -2, "fog_start");
2300+
push_ARGB8(L, skybox_params.fog_color);
2301+
lua_setfield(L, -2, "fog_color");
23002302
lua_setfield(L, -2, "fog");
23012303

23022304
return 1;

0 commit comments

Comments
 (0)