Skip to content

Commit

Permalink
Add % fullbright lightmapped texture flag
Browse files Browse the repository at this point in the history
  • Loading branch information
seedee committed Jul 10, 2024
1 parent 509e70f commit 10a80d1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/sdhlt/sdHLRAD/lightmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4871,7 +4871,6 @@ void FinalLightFace(const int facenum)
return; // non-lit texture
}


for (lightstyles = 0; lightstyles < MAXLIGHTMAPS; lightstyles++)
{
if (f->styles[lightstyles] == 255)
Expand All @@ -4893,6 +4892,11 @@ void FinalLightFace(const int facenum)
//
minlight = FloatForKey(g_face_entity[facenum], "_minlight") * 128;

if (!strncasecmp(GetTextureByNumber(f->texinfo), "%", 1)) //If texture name has % flag //seedee
{
minlight = 2 * 128; //max _minlight * 128 = fullbright
}

original_basiclight = (vec3_t *)calloc (fl->numsamples, sizeof(vec3_t));
final_basiclight = (int (*)[3])calloc (fl->numsamples, sizeof(int [3]));
hlassume (original_basiclight != NULL, assume_NoMemory);
Expand Down

0 comments on commit 10a80d1

Please sign in to comment.