Update readme with more information about GPU and CPU baking, and also to clearly distinguish the static point and spotlight types.

This commit is contained in:
nashmuhandes 2022-02-16 00:30:37 +08:00
parent 6151efa762
commit a0b90d554f

View file

@ -7,7 +7,9 @@ that it can also bake lights. Once ZDRay has processed the level WAD it is ready
ZDRay is based on zdbsp for the node generation and originally used dlight for the lightmap generation. Special thanks to Randi Heit, ZDRay is based on zdbsp for the node generation and originally used dlight for the lightmap generation. Special thanks to Randi Heit,
Samuel Villarreal, Christoph Oelckers and anyone else involved in creating or maintaining those tools. Samuel Villarreal, Christoph Oelckers and anyone else involved in creating or maintaining those tools.
The ray tracing code has been completely rewritten since. It now supports bounces and can do the ray tracing on the GPU. The ray tracing code has been completely rewritten since. It now supports bounces and can do the ray tracing on the GPU. GPU ray
tracing requires a graphics card that has support for the Vulkan ray tracing API (for example, nvidia 10 series and higher). ZDRay
will automatically fall back to CPU tracing if no compatible GPU is found.
## ZDRay Usage ## ZDRay Usage
@ -47,7 +49,7 @@ Usage: zdray [options] sourcefile.wad
## ZDRay UDMF properties ## ZDRay UDMF properties
<pre> <pre>
thing // ZDRayInfo (zdray properties for the map) thing // ZDRayInfo (ZDRay properties for the map)
{ {
type = 9890; type = 9890;
suncolor = &lt;int&gt; (color) suncolor = &lt;int&gt; (color)
@ -59,8 +61,17 @@ thing // ZDRayInfo (zdray properties for the map)
gridsize = &lt;float&gt; (default: 32, grid density for the automatic light probes) gridsize = &lt;float&gt; (default: 32, grid density for the automatic light probes)
} }
thing // StaticLight (point or spot light to be baked into the lightmap) thing // Static point light
{ {
type = 9876;
lightcolor = &lt;int&gt; (color)
lightintensity = &lt;float&gt; (default: 1)
lightdistance = &lt;float&gt; (default: 0, no light)
}
thing // Static spotlight
{
type = 9881;
lightcolor = &lt;int&gt; (color) lightcolor = &lt;int&gt; (color)
lightintensity = &lt;float&gt; (default: 1) lightintensity = &lt;float&gt; (default: 1)
lightdistance = &lt;float&gt; (default: 0, no light) lightdistance = &lt;float&gt; (default: 0, no light)