From 5991530b912c629951c68a9b0767e356c00835e8 Mon Sep 17 00:00:00 2001 From: SmileTheory Date: Mon, 4 Feb 2013 20:33:58 -0800 Subject: Merge Reaction renderer features, remove "#ifdef REACTION"s --- src/rend2/tr_surface.c | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) (limited to 'src/rend2/tr_surface.c') diff --git a/src/rend2/tr_surface.c b/src/rend2/tr_surface.c index 406c7a26..ad7f5a5f 100644 --- a/src/rend2/tr_surface.c +++ b/src/rend2/tr_surface.c @@ -300,27 +300,7 @@ static void RB_SurfaceSprite( void ) { VectorSubtract( vec3_origin, left, left ); } -#ifdef REACTION - if (ent->e.renderfx & RF_SUNFLARE) - { - if (backEnd.viewHasSunFlare) - { - ri.Printf(PRINT_WARNING, "Multiple sun flares not supported\n"); - return; - } - if (R_CullPointAndRadiusEx(ent->e.origin, ent->e.radius, backEnd.viewParms.frustum, (backEnd.viewParms.flags & VPF_FARPLANEFRUSTUM) ? 5 : 4) == CULL_OUT) - return; - colors[0] = colors[1] = colors[2] = colors[3] = ent->e.shaderRGBA[glRefConfig.framebufferObject] / 255.0f; - if (colors[0] == 0) - return; - backEnd.viewHasSunFlare = qtrue; - backEnd.frameHasSunFlare = qtrue; - } - else -#endif - { - VectorScale4(ent->e.shaderRGBA, 1.0f / 255.0f, colors); - } + VectorScale4(ent->e.shaderRGBA, 1.0f / 255.0f, colors); RB_AddQuadStamp( ent->e.origin, left, up, colors ); } -- cgit