mirror of
https://github.com/ZDoom/ZDRay.git
synced 2024-11-22 20:11:11 +00:00
51 lines
1.5 KiB
Markdown
51 lines
1.5 KiB
Markdown
|
|
# ZDRay baking utility for GZDoom
|
|
|
|
ZDRay is a node and lightmap generator. It is based on zdbsp for the node generation and dlight for the lightmap generation.
|
|
|
|
Special thanks to Randi Heit, Samuel Villarreal, Christoph Oelckers and anyone else involved in creating or maintaining those tools.
|
|
|
|
## ZDRay UDMF properties
|
|
|
|
<pre>
|
|
thing // StaticLight (point or spot light to be baked into the lightmap)
|
|
{
|
|
lightcolor = <int> (color)
|
|
lightintensity = <float> (default: 1)
|
|
lightdistance = <float> (default: 0, no light)
|
|
lightinnerangle = <float> (default: 180)
|
|
lightouterangle = <float> (default: 180)
|
|
}
|
|
|
|
thing // LightProbe (light sampling point for actors)
|
|
{
|
|
type = 9875;
|
|
}
|
|
|
|
thing // Sunlight (sunlight properties for the map)
|
|
{
|
|
type = 9890;
|
|
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)
|
|
lightdistancefloor = <float> (default: 0, no light)
|
|
|
|
lightcolorceiling = <int> (color, default: white)
|
|
lightintensityceiling = <float> (default: 1)
|
|
lightdistanceceiling = <float> (default: 0, no light)
|
|
}
|
|
</pre>
|