OpenGL2: Remove per fragment tangent space calculation code.
This commit is contained in:
1 parent
4faf1008a0
commit
8749d62bbd
13 files changed
+5
-130
No files matched your search
@@ -809,7 +809,6 @@ static void ParseFace( dsurface_t *ds, drawVert_t *verts, float *hdrVertColors,
|
||||
|
||||
surf->data = (surfaceType_t *)cv;
|
||||
|
||||
#ifdef USE_VERT_TANGENT_SPACE
|
||||
// Calculate tangent spaces
|
||||
{
|
||||
srfVert_t *dv[3];
|
||||
@@ -823,7 +822,6 @@ static void ParseFace( dsurface_t *ds, drawVert_t *verts, float *hdrVertColors,
|
||||
R_CalcTangentVectors(dv);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -963,7 +961,6 @@ static void ParseTriSurf( dsurface_t *ds, drawVert_t *verts, float *hdrVertColor
|
||||
cv->numIndexes -= badTriangles * 3;
|
||||
}
|
||||
|
||||
#ifdef USE_VERT_TANGENT_SPACE
|
||||
// Calculate tangent spaces
|
||||
{
|
||||
srfVert_t *dv[3];
|
||||
@@ -977,7 +974,6 @@ static void ParseTriSurf( dsurface_t *ds, drawVert_t *verts, float *hdrVertColor
|
||||
R_CalcTangentVectors(dv);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -1773,9 +1769,7 @@ static int BSPSurfaceCompare(const void *a, const void *b)
|
||||
static void CopyVert(const srfVert_t * in, srfVert_t * out)
|
||||
{
|
||||
VectorCopy(in->xyz, out->xyz);
|
||||
#ifdef USE_VERT_TANGENT_SPACE
|
||||
VectorCopy4(in->tangent, out->tangent);
|
||||
#endif
|
||||
VectorCopy4(in->normal, out->normal);
|
||||
VectorCopy4(in->lightdir, out->lightdir);
|
||||
|
||||
|
||||
Reference in new issue
Block a user