mirror of
https://github.com/ZDoom/ZDRay.git
synced 2024-11-10 06:41:37 +00:00
Update docs
This commit is contained in:
parent
3a1968782d
commit
2f7b97854a
2 changed files with 24 additions and 10 deletions
32
README.md
32
README.md
|
@ -8,14 +8,7 @@ Special thanks to Randi Heit, Samuel Villarreal, Christoph Oelckers and anyone e
|
|||
## ZDRay UDMF properties
|
||||
|
||||
<pre>
|
||||
linedef
|
||||
{
|
||||
lightcolor = <int> (color, default: white)
|
||||
lightintensity = <float> (default: 1)
|
||||
lightdistance = <float> (default: 0, no light)
|
||||
}
|
||||
|
||||
thing
|
||||
thing // StaticLight (point or spot light to be baked into the lightmap)
|
||||
{
|
||||
lightcolor = <int> (color)
|
||||
lightintensity = <float> (default: 1)
|
||||
|
@ -24,7 +17,28 @@ thing
|
|||
lightouterangle = <float> (default: 180)
|
||||
}
|
||||
|
||||
sector
|
||||
thing // LightProbe (light sampling point for actors)
|
||||
{
|
||||
type = 9875;
|
||||
}
|
||||
|
||||
thing // Sunlight (sunlight properties for the map)
|
||||
{
|
||||
type = 9876;
|
||||
suncolor = <int> (color)
|
||||
sundirx = <float> (X direction for the sun)
|
||||
sundiry = <float> (Y direction for the sun)
|
||||
sundirz = <float> (Z direction for the sun)
|
||||
}
|
||||
|
||||
linedef // Line surface emitting
|
||||
{
|
||||
lightcolor = <int> (color, default: white)
|
||||
lightintensity = <float> (default: 1)
|
||||
lightdistance = <float> (default: 0, no light)
|
||||
}
|
||||
|
||||
sector // Sector planes emitting light
|
||||
{
|
||||
lightcolorfloor = <int> (color, default: white)
|
||||
lightintensityfloor = <float> (default: 1)
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue