diff --git a/src/definition/TexturesDefinition.h b/src/definition/TexturesDefinition.h index c28df51..99b9678 100644 --- a/src/definition/TexturesDefinition.h +++ b/src/definition/TexturesDefinition.h @@ -16,11 +16,7 @@ class DEFINITIONSHARED_EXPORT TexturesDefinition : public Layers { return (TextureLayerDefinition *)getLayer(position); } - typedef enum { - TEXTURES_PRESET_FULL, - TEXTURES_PRESET_IRELAND, - TEXTURES_PRESET_ALPS - } TexturesPreset; + typedef enum { TEXTURES_PRESET_FULL, TEXTURES_PRESET_IRELAND, TEXTURES_PRESET_ALPS } TexturesPreset; void applyPreset(TexturesPreset preset, RandomGenerator &random = RandomGeneratorDefault); double getMaximalDisplacement(); diff --git a/src/render/opengl/OpenGLTerrainChunk.cpp b/src/render/opengl/OpenGLTerrainChunk.cpp index 6d10d0a..95689f0 100644 --- a/src/render/opengl/OpenGLTerrainChunk.cpp +++ b/src/render/opengl/OpenGLTerrainChunk.cpp @@ -99,7 +99,8 @@ bool OpenGLTerrainChunk::maintain() { double x = _startx + factor * to_double(i); double z = _startz + factor * to_double(j); Color color = _renderer->getTerrainRenderer()->getFinalColor(x, z, 0.001); - new_image->setPixel(i, j, Color(color.r * 0.2, color.g * 0.2, color.b * 0.2).normalized().to32BitRGBA()); + new_image->setPixel(i, j, + Color(color.r * 0.2, color.g * 0.2, color.b * 0.2).normalized().to32BitRGBA()); } } diff --git a/src/render/software/AtmosphereModelBruneton.h b/src/render/software/AtmosphereModelBruneton.h index d458d69..f17b635 100644 --- a/src/render/software/AtmosphereModelBruneton.h +++ b/src/render/software/AtmosphereModelBruneton.h @@ -13,7 +13,8 @@ class SOFTWARESHARED_EXPORT AtmosphereModelBruneton : public LightSource { AtmosphereModelBruneton(SoftwareRenderer *parent); virtual ~AtmosphereModelBruneton(); - AtmosphereResult getSkyColor(Vector3 eye, const Vector3 &direction, const Vector3 &sun_position, const Color &base) const; + AtmosphereResult getSkyColor(Vector3 eye, const Vector3 &direction, const Vector3 &sun_position, + const Color &base) const; AtmosphereResult applyAerialPerspective(Vector3 location, const Color &base) const; virtual bool getLightsAt(vector &result, const Vector3 &location) const override;