]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
made sure EF_FULLBRIGHT works on everything (bmodels were broken)
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 12 Dec 2003 00:28:56 +0000 (00:28 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 12 Dec 2003 00:28:56 +0000 (00:28 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3723 d7cf8633-e32d-0410-b094-e92efae38249

gl_rsurf.c
todo

index 94622dc05d6154f9f84b8b0c9951739d9d7d923d..1f68253dbe243f3a8a824b1bd298225019a0c5b2 100644 (file)
@@ -249,7 +249,7 @@ static void R_BuildLightMap (const entity_render_t *ent, msurface_t *surf)
 
        // set to full bright if no light data
                bl = intblocklights;
-               if ((ent->effects & EF_FULLBRIGHT) || !ent->model->brushq1.lightdata)
+               if (!ent->model->brushq1.lightdata)
                {
                        for (i = 0;i < size3;i++)
                                bl[i] = 255*256;
@@ -337,7 +337,7 @@ static void R_BuildLightMap (const entity_render_t *ent, msurface_t *surf)
 
        // set to full bright if no light data
                bl = floatblocklights;
-               if ((ent->effects & EF_FULLBRIGHT) || !ent->model->brushq1.lightdata)
+               if (!ent->model->brushq1.lightdata)
                        j = 255*256;
                else
                        j = r_ambient.value * 512.0f; // would be 128.0f logically, but using 512.0f to match winquake style
@@ -1232,6 +1232,16 @@ static void RSurfShader_Wall_Lightmap(const entity_render_t *ent, const texture_
                        }
                }
        }
+       else if (ent->effects & EF_FULLBRIGHT)
+       {
+               RSurfShader_OpaqueWall_Pass_BaseTexture(ent, texture, surfchain);
+               if (r_detailtextures.integer)
+                       RSurfShader_OpaqueWall_Pass_BaseDetail(ent, texture, surfchain);
+               if (texture->skin.glow)
+                       RSurfShader_OpaqueWall_Pass_Glow(ent, texture, surfchain);
+               if (fogenabled)
+                       RSurfShader_OpaqueWall_Pass_Fog(ent, texture, surfchain);
+       }
        else if (r_shadow_realtime_world.integer)
        {
                // opaque base lighting
diff --git a/todo b/todo
index 426a4f7a3bde5023da0e980a5bfeb2cea3a08a0c..2376e73c4feceff97770b3d33f0a0fd9134e7433 100644 (file)
--- a/todo
+++ b/todo
@@ -101,9 +101,9 @@ d darkplaces: fix key based turning being affected by slowmo - it should not be
 0 darkplaces: make memory pools have a flag to print them as temporary pools (I.E. consider them leaks if anything is in them) (Vicious)
 0 darkplaces: make server able to work without models, just for sake of completeness
 0 darkplaces: make server queries use a queue to avoid flooding out queries too fast (Willis)
-0 darkplaces: make sure EF_FULLBRIGHT works on bmodels (FrikaC)
-0 darkplaces: make sure EF_FULLBRIGHT works on models (FrikaC)
-0 darkplaces: make sure EF_FULLBRIGHT works on sprites (FrikaC)
+-n darkplaces: make sure EF_FULLBRIGHT works on bmodels (FrikaC)
+-n darkplaces: make sure EF_FULLBRIGHT works on models (FrikaC)
+-n darkplaces: make sure EF_FULLBRIGHT works on sprites (FrikaC)
 0 darkplaces: make sure PR_SetString points NULL strings at pr_strings (which would be an offset of 0) (Fuh)
 0 darkplaces: make sure QuakeDoneQuick works (Chris Kemp)
 0 darkplaces: make sure r_fullbright works