Merge Reaction renderer features, remove "#ifdef REACTION"s

This commit is contained in:
SmileTheory 2013-02-04 20:33:58 -08:00
parent 517c65d85e
commit 9bace5bac7
11 changed files with 122 additions and 225 deletions

View file

@ -202,10 +202,8 @@ RE_AddRefEntityToScene
=====================
*/
void RE_AddRefEntityToScene( const refEntity_t *ent ) {
#ifdef REACTION
// JBravo: Mirrored models
vec3_t cross;
#endif
if ( !tr.registered ) {
return;
@ -229,11 +227,9 @@ void RE_AddRefEntityToScene( const refEntity_t *ent ) {
backEndData->entities[r_numentities].e = *ent;
backEndData->entities[r_numentities].lightingCalculated = qfalse;
#ifdef REACTION
// JBravo: Mirrored models
CrossProduct(ent->axis[0], ent->axis[1], cross);
backEndData->entities[r_numentities].mirrored = (DotProduct(ent->axis[2], cross) < 0.f);
#endif
r_numentities++;
}
@ -406,7 +402,6 @@ void RE_RenderScene( const refdef_t *fd ) {
tr.refdef.toneMinAvgMaxLinear[2] = pow(2, tr.toneMinAvgMaxLevel[2]);
}
//#ifdef REACTION
// Makro - copy exta info if present
if (fd->rdflags & RDF_EXTRA) {
const refdefex_t* extra = (const refdefex_t*) (fd+1);
@ -424,7 +419,6 @@ void RE_RenderScene( const refdef_t *fd ) {
{
tr.refdef.blurFactor = 0.0f;
}
//#endif
// derived info