don't apply dlights to opaque models (this was happening when flashblend is on)
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 24 Apr 2005 05:24:30 +0000 (05:24 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 24 Apr 2005 05:24:30 +0000 (05:24 +0000)
default dlight shadowing on

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5207 d7cf8633-e32d-0410-b094-e92efae38249

r_light.c
r_shadow.c

index 716998a..cebe80b 100644 (file)
--- a/r_light.c
+++ b/r_light.c
@@ -331,7 +331,7 @@ int R_LightModel(float *ambient4f, float *diffusecolor, float *diffusenormal, co
                        nl->offset = sl->distbias;
                }
        }
-       if (!r_rtdlight || (ent->flags & RENDER_TRANSPARENT))
+       if (ent->flags & RENDER_TRANSPARENT)
        {
                // FIXME: this dlighting doesn't look like rtlights
                for (i = 0;i < r_numdlights;i++)
index 379dd07..08e2dc8 100644 (file)
@@ -175,7 +175,7 @@ cvar_t r_shadow_lightintensityscale = {0, "r_shadow_lightintensityscale", "1"};
 cvar_t r_shadow_portallight = {0, "r_shadow_portallight", "1"};
 cvar_t r_shadow_projectdistance = {0, "r_shadow_projectdistance", "1000000"};
 cvar_t r_shadow_realtime_dlight = {CVAR_SAVE, "r_shadow_realtime_dlight", "1"};
-cvar_t r_shadow_realtime_dlight_shadows = {CVAR_SAVE, "r_shadow_realtime_dlight_shadows", "0"};
+cvar_t r_shadow_realtime_dlight_shadows = {CVAR_SAVE, "r_shadow_realtime_dlight_shadows", "1"};
 cvar_t r_shadow_realtime_dlight_portalculling = {0, "r_shadow_realtime_dlight_portalculling", "0"};
 cvar_t r_shadow_realtime_world = {CVAR_SAVE, "r_shadow_realtime_world", "0"};
 cvar_t r_shadow_realtime_world_dlightshadows = {CVAR_SAVE, "r_shadow_realtime_world_dlightshadows", "1"};