Skip to content

Commit

Permalink
Extended the supported light style range to 200% to fix over-bright l…
Browse files Browse the repository at this point in the history
…ighting.
  • Loading branch information
apanteleev committed Aug 26, 2021
1 parent 56725d1 commit 95e84a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/refresh/vkpt/vertex_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,10 @@ copy_light(const light_poly_t* light, float* vblight, const float* sky_radiance)
if (light->style != 0 && vkpt_refdef.fd->lightstyles)
{
style_scale = vkpt_refdef.fd->lightstyles[light->style].white;
style_scale = max(0, min(1, style_scale));
style_scale = max(0.f, min(2.f, style_scale));

prev_style = vkpt_refdef.prev_lightstyles[light->style].white;
prev_style = max(0, min(1, prev_style));
prev_style = max(0.f, min(2.f, prev_style));
}

float mat_scale = light->material ? light->material->emissive_factor : 1.f;
Expand Down

0 comments on commit 95e84a4

Please sign in to comment.