mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-16 18:01:40 +00:00
Fix clang-tidy type promotion errors
This commit is contained in:
parent
229389b7f6
commit
9fcd7f2dc0
10 changed files with 20 additions and 17 deletions
|
@ -171,8 +171,8 @@ f32 ShadowRenderer::getMaxShadowFar() const
|
|||
|
||||
void ShadowRenderer::setShadowIntensity(float shadow_intensity)
|
||||
{
|
||||
m_shadow_strength = pow(shadow_intensity, 1.0f / m_shadow_strength_gamma);
|
||||
if (m_shadow_strength > 1E-2)
|
||||
m_shadow_strength = std::pow(shadow_intensity, 1.0f / m_shadow_strength_gamma);
|
||||
if (m_shadow_strength > 1e-2f)
|
||||
enable();
|
||||
else
|
||||
disable();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue