mirror of
https://github.com/ZDoom/ZDRay.git
synced 2024-11-10 06:41:37 +00:00
Fix sunlight not working
This commit is contained in:
parent
500ddfebe9
commit
3d1fe65485
2 changed files with 6 additions and 3 deletions
|
@ -214,7 +214,10 @@ struct IntSector
|
|||
|
||||
int group = 0;
|
||||
|
||||
FTextureID GetTexture(SecPlaneType plane) { return FNullTextureID(); }
|
||||
FTextureID GetTexture(SecPlaneType plane)
|
||||
{
|
||||
return TexMan.CheckForTexture(GetTextureName(plane), ETextureType::Flat);
|
||||
}
|
||||
|
||||
// Utility functions
|
||||
inline const char* GetTextureName(int plane) const { return plane != PLANE_FLOOR ? data.ceilingpic : data.floorpic; }
|
||||
|
|
|
@ -637,9 +637,9 @@ void DoomLevelSubmesh::CreateCeilingSurface(std::map<LightmapTileBinding, int>&
|
|||
surf.MeshLocation.StartElementIndex = Mesh.Indexes.Size();
|
||||
for (int j = 2; j < surf.MeshLocation.NumVerts; j++)
|
||||
{
|
||||
Mesh.Indexes.Push(startVertIndex);
|
||||
Mesh.Indexes.Push(startVertIndex + j - 1);
|
||||
Mesh.Indexes.Push(startVertIndex + j);
|
||||
Mesh.Indexes.Push(startVertIndex + j - 1);
|
||||
Mesh.Indexes.Push(startVertIndex);
|
||||
numElements += 3;
|
||||
}
|
||||
surf.MeshLocation.NumElements = numElements;
|
||||
|
|
Loading…
Reference in a new issue