From a0b90d554fafc2e435b058dae04e5200b80b35e5 Mon Sep 17 00:00:00 2001 From: nashmuhandes Date: Wed, 16 Feb 2022 00:30:37 +0800 Subject: [PATCH] Update readme with more information about GPU and CPU baking, and also to clearly distinguish the static point and spotlight types. --- README.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f9089e5..e6848a1 100644 --- a/README.md +++ b/README.md @@ -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, 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 @@ -47,7 +49,7 @@ Usage: zdray [options] sourcefile.wad ## ZDRay UDMF properties
-thing // ZDRayInfo (zdray properties for the map)
+thing // ZDRayInfo (ZDRay properties for the map)
 {
 	type = 9890;
 	suncolor = <int> (color)
@@ -59,8 +61,17 @@ thing // ZDRayInfo (zdray properties for the map)
 	gridsize = <float> (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 = <int> (color)
+	lightintensity = <float> (default: 1)
+	lightdistance = <float> (default: 0, no light)
+}
+
+thing // Static spotlight
+{
+	type = 9881;
 	lightcolor = <int> (color)
 	lightintensity = <float> (default: 1)
 	lightdistance = <float> (default: 0, no light)