Showing the changes to interface/src/Environment.cpp (1 of 51 files). Show all
Unified · Split
| @@ -237,8 +237,8 @@ void Environment::renderAtmosphere(Camera& camera, const EnvironmentData& data) · 236 unmodified lines | ||
| 237 | 237 | program->setUniformValue(locations[INNER_RADIUS_LOCATION], data.getAtmosphereInnerRadius()); |
| 238 | 238 | program->setUniformValue(locations[KR_ESUN_LOCATION], data.getRayleighScattering() * data.getSunBrightness()); |
| 239 | 239 | program->setUniformValue(locations[KM_ESUN_LOCATION], data.getMieScattering() * data.getSunBrightness()); |
| 240 | − program->setUniformValue(locations[KR_4PI_LOCATION], data.getRayleighScattering() * 4.0f * PIf); | |
| 241 | − program->setUniformValue(locations[KM_4PI_LOCATION], data.getMieScattering() * 4.0f * PIf); | |
| 240 | + program->setUniformValue(locations[KR_4PI_LOCATION], data.getRayleighScattering() * 4.0f * PI); | |
| 241 | + program->setUniformValue(locations[KM_4PI_LOCATION], data.getMieScattering() * 4.0f * PI); | |
| 242 | 242 | program->setUniformValue(locations[SCALE_LOCATION], 1.0f / (data.getAtmosphereOuterRadius() - data.getAtmosphereInnerRadius())); |
| 243 | 243 | program->setUniformValue(locations[SCALE_DEPTH_LOCATION], 0.25f); |
| 244 | 244 | program->setUniformValue(locations[SCALE_OVER_SCALE_DEPTH_LOCATION], |