rtx: fixup point/spot light attenuation after sampling fixes

This commit is contained in:
Ivan Avdeev 2021-12-08 11:27:04 -08:00
parent 8d041d3fb0
commit e831a9c9dd

View File

@ -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;