Add lightmap texture support to vulkan backend

Also fix a warning in SetFlatVertex
This commit is contained in:
Magnus Norddahl 2021-09-25 00:13:25 +02:00
commit 63ecb36889
9 changed files with 137 additions and 9 deletions

View file

@ -191,7 +191,7 @@ static void SetFlatVertex(FFlatVertex& ffv, vertex_t* vt, const secplane_t& plan
ffv.lindex = -1.0f;
}
static void SetFlatVertex(FFlatVertex& ffv, vertex_t* vt, const secplane_t& plane, float llu, float llv, float llindex)
static void SetFlatVertex(FFlatVertex& ffv, vertex_t* vt, const secplane_t& plane, float llu, float llv, int llindex)
{
ffv.x = (float)vt->fX();
ffv.y = (float)vt->fY();
@ -200,7 +200,7 @@ static void SetFlatVertex(FFlatVertex& ffv, vertex_t* vt, const secplane_t& plan
ffv.v = -(float)vt->fY() / 64.f;
ffv.lu = llu;
ffv.lv = llv;
ffv.lindex = llindex;
ffv.lindex = (float)llindex;
}
//==========================================================================