Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion rts/Lua/LuaUnsyncedCtrl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4206,6 +4206,25 @@ int LuaUnsyncedCtrl::SetSunDirection(lua_State* L)
return 0;
}

/***
* @class SunLightingParams
*
* The parameter table for sun lighting
* @see Spring.SetSunLighting
*
* @field specularExponent number?
* @field groundShadowDensity number?
* @field modelShadowDensity number?
* @field groundAmbientColor rgba?
* @field groundDiffuseColor rgba?
* @field groundSpecularColor rgba?
* @field unitAmbientColor rgba?
* @field modelAmbientColor rgba?
* @field unitDiffuseColor rgba?
* @field modelDiffuseColor rgba?
* @field unitSpecularColor rgba?
* @field modelSpecularColor rgba?
*/

/***
* Modify sun lighting parameters.
Expand All @@ -4215,7 +4234,7 @@ int LuaUnsyncedCtrl::SetSunDirection(lua_State* L)
* ```
*
* @function Spring.SetSunLighting
* @param params { groundAmbientColor: rgb, groundDiffuseColor: rgb }
* @param params SunLightingParams
*/
int LuaUnsyncedCtrl::SetSunLighting(lua_State* L)
{
Expand Down
Loading