View Issue Details

IDProjectCategoryView StatusLast Update
0006159Spring engineGeneralpublic2019-03-13 00:53
ReporterFloris Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionno change required 
Product Version104.0 +git 
Fixed in Version104.0 +git 
Summary0006159: can read gl.GetSun("shadowDensity") but no option to adjust
Descriptioni would like the possibility to set this via lua like:
Spring.SetSunLighting({groundShadowDensity = value})

Also its unclear to me if shadow density is different for map/unit shadows
TagsNo tags attached.
Checked infolog.txt for ErrorsIrrelevant

Activities

Kloot

2019-03-12 21:30

developer   ~0019824

Spring.SetSunLighting({groundShadowDensity = value}) already works, listen for the SunChanged event when you call it.

> its unclear to me if shadow density is different for map/unit shadows

it is, use Spring.SetSunLighting({modelShadowDensity = value}) to set the model value.

Issue History

Date Modified Username Field Change
2019-03-12 21:05 Floris New Issue
2019-03-12 21:30 Kloot Note Added: 0019824
2019-03-13 00:53 Kloot Status new => resolved
2019-03-13 00:53 Kloot Resolution open => no change required
2019-03-13 00:53 Kloot Fixed in Version => 104.0 +git