Update ZDRay stuff (#750)

- Removed surface lights
- Move ZDRayInfo stuff back to UDMF keys
- Add per-surface sampling distance UDMF keys to lines and sectors
- Standardize and finalize the naming conventions for the new UDMF keys to everything lightmap-related to use an "lm_" prefix
This commit is contained in:
Nash Muhandes 2022-07-02 16:50:18 +08:00 committed by GitHub
parent a269b13a2d
commit 490cb7844e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 47 additions and 59 deletions

View file

@ -75,26 +75,11 @@ gzdoom_lights
{
title = "ZDRayInfo";
class = "ZDRaySun"; // Fake class name
arg0
adduniversalfields
{
title = "Sun color";
default = 16777215;
str = true;
}
arg1
{
title = "Sample distance";
default = 8;
}
arg2
{
title = "Bounces";
default = 1;
}
arg3
{
title = "Probe grid size";
default = 32;
lm_suncolor;
lm_sampledistance;
lm_gridsize;
}
}
}

View file

@ -376,22 +376,28 @@ universalfields
default = "";
}
lightcolorline
lm_sampledist_line
{
type = 10;
default = 16777215;
type = 0;
default = 0;
}
lightintensityline
lm_sampledist_top
{
type = 1;
default = 1.0;
type = 0;
default = 0;
}
lightdistanceline
lm_sampledist_mid
{
type = 1;
default = 0.0;
type = 0;
default = 0;
}
lm_sampledist_bot
{
type = 0;
default = 0;
}
}
@ -729,6 +735,27 @@ universalfields
type = 1;
default = 1.0;
}
lm_suncolor
{
type = 10;
default = 16777215;
thingtypespecific = true;
}
lm_sampledistance
{
type = 0;
default = 8;
thingtypespecific = true;
}
lm_gridsize
{
type = 1;
default = 32.0;
thingtypespecific = true;
}
}
sector
@ -1033,40 +1060,16 @@ universalfields
default = false;
}
lightcolorfloor
lm_sampledist_floor
{
type = 10;
default = 16777215;
type = 0;
default = 0;
}
lightintensityfloor
lm_sampledist_ceiling
{
type = 1;
default = 1.0;
}
lightdistancefloor
{
type = 1;
default = 0.0;
}
lightcolorceiling
{
type = 10;
default = 16777215;
}
lightintensityceiling
{
type = 1;
default = 1.0;
}
lightdistanceceiling
{
type = 1;
default = 0.0;
type = 0;
default = 0;
}
}
}