mirror of
https://github.com/ZDoom/ZDRay.git
synced 2024-11-10 14:51:40 +00:00
- fix misc light surfaces not working outside their own subsector
This commit is contained in:
parent
8958790fed
commit
6459b10724
3 changed files with 4 additions and 5 deletions
|
@ -509,6 +509,7 @@ void kexLightmapBuilder::TraceSurface(surface_t *surface)
|
|||
(surface->lightmapSteps[1] * (float)i);
|
||||
|
||||
kexVec3 c = LightTexelSample(trace, pos, surface);
|
||||
kexMath::Clamp(c, 0, 1);
|
||||
|
||||
// if nothing at all was traced and color is completely black
|
||||
// then this surface will not go through the extra rendering
|
||||
|
|
|
@ -417,7 +417,6 @@ bool kexLightSurface::TraceSurface(FLevel *doomMap, kexTrace &trace, const surfa
|
|||
curDist = 1.0f - d / distance;
|
||||
if (curDist < 0.0f) curDist = 0.0f;
|
||||
|
||||
/*
|
||||
if(curDist >= 1)
|
||||
{
|
||||
curDist = 1;
|
||||
|
@ -445,7 +444,6 @@ bool kexLightSurface::TraceSurface(FLevel *doomMap, kexTrace &trace, const surfa
|
|||
curDist *= angle;
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
if(curDist > *dist)
|
||||
{
|
||||
|
|
|
@ -564,11 +564,11 @@ void FLevel::ParseConfigFile(const char *file)
|
|||
surfaceLightDef surfaceLight;
|
||||
|
||||
surfaceLight.tag = 0;
|
||||
surfaceLight.outerCone = 1.0f;
|
||||
surfaceLight.innerCone = 0;
|
||||
surfaceLight.outerCone = 0.0f;
|
||||
surfaceLight.innerCone = 0.0f;
|
||||
surfaceLight.falloff = 1.0f;
|
||||
surfaceLight.intensity = 1.0f;
|
||||
surfaceLight.distance = 1000.0f;
|
||||
surfaceLight.distance = 400.0f;
|
||||
surfaceLight.bIgnoreCeiling = false;
|
||||
surfaceLight.bIgnoreFloor = false;
|
||||
surfaceLight.bNoCenterPoint = false;
|
||||
|
|
Loading…
Reference in a new issue