mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-17 06:30:44 +01:00
rtx: fixup point/spot light attenuation after sampling fixes
This commit is contained in:
parent
8d041d3fb0
commit
e831a9c9dd
@ -883,8 +883,8 @@ static void processStaticPointLights( void ) {
|
||||
for (int i = 0; i < g_map_entities.num_lights; ++i) {
|
||||
const vk_light_entity_t *le = g_map_entities.lights + i;
|
||||
const float default_radius = 2.f; // FIXME tune
|
||||
const float hack_attenuation = 1.f; // FIXME tune
|
||||
const float hack_attenuation_spot = 1.f; // FIXME tune
|
||||
const float hack_attenuation = .1f; // FIXME tune
|
||||
const float hack_attenuation_spot = .1f; // FIXME tune
|
||||
const float radius = le->radius > 0.f ? le->radius : default_radius;
|
||||
int index;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user