mirror of
https://github.com/ZDoom/ZDRay.git
synced 2024-11-22 20:11:11 +00:00
Seems thing.height is not a reliable value in zdray?
This commit is contained in:
parent
53328e8f65
commit
ba36819da9
1 changed files with 2 additions and 2 deletions
|
@ -696,7 +696,7 @@ void LightmapBuilder::LightProbe(int id)
|
|||
const IntThing& thing = map->Things[thingIndex];
|
||||
float x = (float)(thing.x >> FRACBITS);
|
||||
float y = (float)(thing.y >> FRACBITS);
|
||||
float z = (float)thing.z + thing.height * 0.5f;
|
||||
float z = (float)thing.z /* + thing.height * 0.5f*/;
|
||||
|
||||
lightProbes[id] = LightTexelSample({ x, y, z }, nullptr);
|
||||
}
|
||||
|
@ -745,7 +745,7 @@ void LightmapBuilder::AddLightmapLump(FWadWriter &wadFile)
|
|||
const IntThing& thing = map->Things[thingIndex];
|
||||
float x = (float)(thing.x >> FRACBITS);
|
||||
float y = (float)(thing.y >> FRACBITS);
|
||||
float z = (float)thing.z + thing.height * 0.5f;
|
||||
float z = (float)thing.z /* + thing.height * 0.5f*/;
|
||||
|
||||
lumpFile.WriteFloat(x);
|
||||
lumpFile.WriteFloat(y);
|
||||
|
|
Loading…
Reference in a new issue