Skip to content

Commit

Permalink
feat: reduce weight of directional light sources when calculating dom…
Browse files Browse the repository at this point in the history
…inant light direction
  • Loading branch information
Silverlan committed Mar 13, 2023
1 parent 755e0cd commit b935e2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/client/src/util/util_baking.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ static double calc_light_luminance(const util::baking::LightSource &light, const
intensity = ::pragma::BaseEnvLightPointComponent::CalcIntensityAtPoint(light.position, light.intensity, pos);
break;
case util::baking::LightSource::Type::Directional:
intensity = ::pragma::BaseEnvLightDirectionalComponent::CalcIntensityAtPoint(light.intensity, pos);
intensity = ::pragma::BaseEnvLightDirectionalComponent::CalcIntensityAtPoint(light.intensity, pos) * 0.025f;
break;
}
return ulighting::srgb_to_luminance(light.color * intensity);
Expand Down

0 comments on commit b935e2b

Please sign in to comment.