penumbra tweaks

main
Dominik Madarász 2024-09-02 17:03:35 +02:00
parent 301a21a5e1
commit b94145daca
3 changed files with 6 additions and 6 deletions

View File

@ -383307,7 +383307,7 @@ light_t light() {
l.shadow_bias = 0.15f; l.shadow_bias = 0.15f;
l.normal_bias = 0.05f; l.normal_bias = 0.05f;
l.shadow_softness = 7.0f; l.shadow_softness = 7.0f;
l.penumbra_size = 0.0f; l.penumbra_size = 3.0f;
l.min_variance = 0.00002f; l.min_variance = 0.00002f;
l.variance_transition = 0.2f; l.variance_transition = 0.2f;
return l; return l;
@ -383420,7 +383420,7 @@ void ui_light(light_t *l) {
ui_float_("Shadow Bias", &l->shadow_bias, 0.00005); ui_float_("Shadow Bias", &l->shadow_bias, 0.00005);
ui_float_("Normal Bias", &l->normal_bias, 0.00005); ui_float_("Normal Bias", &l->normal_bias, 0.00005);
ui_float_("Shadow Softness", &l->shadow_softness, 0.5); ui_float_("Shadow Softness", &l->shadow_softness, 0.5);
ui_float_("Penumbra Size", &l->penumbra_size, 0.5f); ui_float_("Penumbra Size", &l->penumbra_size, 0.05f);
ui_float_("Min Variance", &l->min_variance, 0.00005); ui_float_("Min Variance", &l->min_variance, 0.00005);
ui_float_("Variance Transition", &l->variance_transition, 0.0005); ui_float_("Variance Transition", &l->variance_transition, 0.0005);
} }

View File

@ -1487,7 +1487,7 @@ light_t light() {
l.shadow_bias = 0.15f; l.shadow_bias = 0.15f;
l.normal_bias = 0.05f; l.normal_bias = 0.05f;
l.shadow_softness = 7.0f; l.shadow_softness = 7.0f;
l.penumbra_size = 0.0f; l.penumbra_size = 3.0f;
l.min_variance = 0.00002f; l.min_variance = 0.00002f;
l.variance_transition = 0.2f; l.variance_transition = 0.2f;
return l; return l;
@ -1600,7 +1600,7 @@ void ui_light(light_t *l) {
ui_float_("Shadow Bias", &l->shadow_bias, 0.00005); ui_float_("Shadow Bias", &l->shadow_bias, 0.00005);
ui_float_("Normal Bias", &l->normal_bias, 0.00005); ui_float_("Normal Bias", &l->normal_bias, 0.00005);
ui_float_("Shadow Softness", &l->shadow_softness, 0.5); ui_float_("Shadow Softness", &l->shadow_softness, 0.5);
ui_float_("Penumbra Size", &l->penumbra_size, 0.5f); ui_float_("Penumbra Size", &l->penumbra_size, 0.05f);
ui_float_("Min Variance", &l->min_variance, 0.00005); ui_float_("Min Variance", &l->min_variance, 0.00005);
ui_float_("Variance Transition", &l->variance_transition, 0.0005); ui_float_("Variance Transition", &l->variance_transition, 0.0005);
} }

View File

@ -18341,7 +18341,7 @@ light_t light() {
l.shadow_bias = 0.15f; l.shadow_bias = 0.15f;
l.normal_bias = 0.05f; l.normal_bias = 0.05f;
l.shadow_softness = 7.0f; l.shadow_softness = 7.0f;
l.penumbra_size = 0.0f; l.penumbra_size = 3.0f;
l.min_variance = 0.00002f; l.min_variance = 0.00002f;
l.variance_transition = 0.2f; l.variance_transition = 0.2f;
return l; return l;
@ -18454,7 +18454,7 @@ void ui_light(light_t *l) {
ui_float_("Shadow Bias", &l->shadow_bias, 0.00005); ui_float_("Shadow Bias", &l->shadow_bias, 0.00005);
ui_float_("Normal Bias", &l->normal_bias, 0.00005); ui_float_("Normal Bias", &l->normal_bias, 0.00005);
ui_float_("Shadow Softness", &l->shadow_softness, 0.5); ui_float_("Shadow Softness", &l->shadow_softness, 0.5);
ui_float_("Penumbra Size", &l->penumbra_size, 0.5f); ui_float_("Penumbra Size", &l->penumbra_size, 0.05f);
ui_float_("Min Variance", &l->min_variance, 0.00005); ui_float_("Min Variance", &l->min_variance, 0.00005);
ui_float_("Variance Transition", &l->variance_transition, 0.0005); ui_float_("Variance Transition", &l->variance_transition, 0.0005);
} }