Update docs

This commit is contained in:
Magnus Norddahl 2021-10-04 23:56:55 +02:00
parent 3a1968782d
commit 2f7b97854a
2 changed files with 24 additions and 10 deletions

View file

@ -8,14 +8,7 @@ Special thanks to Randi Heit, Samuel Villarreal, Christoph Oelckers and anyone e
## ZDRay UDMF properties
<pre>
linedef
{
lightcolor = &lt;int&gt; (color, default: white)
lightintensity = &lt;float&gt; (default: 1)
lightdistance = &lt;float&gt; (default: 0, no light)
}
thing
thing // StaticLight (point or spot light to be baked into the lightmap)
{
lightcolor = &lt;int&gt; (color)
lightintensity = &lt;float&gt; (default: 1)
@ -24,7 +17,28 @@ thing
lightouterangle = &lt;float&gt; (default: 180)
}
sector
thing // LightProbe (light sampling point for actors)
{
type = 9875;
}
thing // Sunlight (sunlight properties for the map)
{
type = 9876;
suncolor = &lt;int&gt; (color)
sundirx = &lt;float&gt; (X direction for the sun)
sundiry = &lt;float&gt; (Y direction for the sun)
sundirz = &lt;float&gt; (Z direction for the sun)
}
linedef // Line surface emitting
{
lightcolor = &lt;int&gt; (color, default: white)
lightintensity = &lt;float&gt; (default: 1)
lightdistance = &lt;float&gt; (default: 0, no light)
}
sector // Sector planes emitting light
{
lightcolorfloor = &lt;int&gt; (color, default: white)
lightintensityfloor = &lt;float&gt; (default: 1)

View file

@ -91,7 +91,7 @@ void FLevel::SetupLights()
{
ThingLightProbes.Push(i);
}
else if (thing->type == 9876) // SunLight
else if (thing->type == 9876) // Sunlight
{
uint32_t lightcolor = 0xffffff;
Vec3 sundir(0.0f, 0.0f, 0.0f);