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 ## ZDRay UDMF properties
<pre> <pre>
linedef thing // StaticLight (point or spot light to be baked into the lightmap)
{
lightcolor = &lt;int&gt; (color, default: white)
lightintensity = &lt;float&gt; (default: 1)
lightdistance = &lt;float&gt; (default: 0, no light)
}
thing
{ {
lightcolor = &lt;int&gt; (color) lightcolor = &lt;int&gt; (color)
lightintensity = &lt;float&gt; (default: 1) lightintensity = &lt;float&gt; (default: 1)
@ -24,7 +17,28 @@ thing
lightouterangle = &lt;float&gt; (default: 180) 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) lightcolorfloor = &lt;int&gt; (color, default: white)
lightintensityfloor = &lt;float&gt; (default: 1) lightintensityfloor = &lt;float&gt; (default: 1)

View file

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