- floatified vertices and removed the now redundant fx and fy members. This needs an added check for polyobject origins, though, so that such subsectors don't get rendered.
This commit is contained in:
parent
8a20f901a3
commit
5a2eac8f15
9 changed files with 67 additions and 70 deletions
|
|
@ -155,11 +155,11 @@ void FFlatVertexBuffer::ImmRenderBuffer(unsigned int primtype, unsigned int offs
|
|||
|
||||
void FFlatVertex::SetFlatVertex(vertex_t *vt, const secplane_t & plane)
|
||||
{
|
||||
x = vt->fx;
|
||||
y = vt->fy;
|
||||
z = plane.ZatPoint(vt->fx, vt->fy); // this is the original position without polyobject translation.
|
||||
u = vt->fx/64.f;
|
||||
v = -vt->fy/64.f;
|
||||
x = vt->fX();
|
||||
y = vt->fY();
|
||||
z = plane.ZatPoint(vt);
|
||||
u = vt->fX()/64.f;
|
||||
v = -vt->fY()/64.f;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue