Skip to content

Commit

Permalink
Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into…
Browse files Browse the repository at this point in the history
… brushbsp
  • Loading branch information
Paril committed Jun 8, 2024
2 parents f816b43 + 02be890 commit 56b5613
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion light/ltface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,10 @@ static float GetLightValue(const settings::worldspawn_keys &cfg, const light_t *
static float GetLightValueWithAngle(const settings::worldspawn_keys &cfg, const light_t *entity, const qvec3f &surfnorm,
bool use_surfnorm, const qvec3f &surfpointToLightDir, float dist, bool twosided)
{
float value = GetLightValue(cfg, entity, dist);
float value = GetLightValueWithAngle(cfg, entity->formula.value(), entity->light.value(),
entity->falloff.value(), entity->atten.value(),
entity->bleed.value(), entity->anglescale.value(), surfnorm,
use_surfnorm, surfpointToLightDir, dist, twosided, LF_SCALE);

/* Check spotlight cone */
float spotscale = 1;
Expand Down

0 comments on commit 56b5613

Please sign in to comment.