mirror of
https://github.com/minetest/minetest.git
synced 2025-03-13 13:52:35 +01:00
Move AutoExposure constructor to header
This commit is contained in:
@ -417,7 +417,6 @@ set(independent_SRCS
|
|||||||
hud.cpp
|
hud.cpp
|
||||||
inventory.cpp
|
inventory.cpp
|
||||||
itemstackmetadata.cpp
|
itemstackmetadata.cpp
|
||||||
lighting.cpp
|
|
||||||
log.cpp
|
log.cpp
|
||||||
metadata.cpp
|
metadata.cpp
|
||||||
modchannels.cpp
|
modchannels.cpp
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
// Luanti
|
|
||||||
// SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
// Copyright (C) 2021 x2048, Dmitry Kostenko <codeforsmile@gmail.com>
|
|
||||||
|
|
||||||
#include "lighting.h"
|
|
||||||
|
|
||||||
AutoExposure::AutoExposure()
|
|
||||||
: luminance_min(-3.f),
|
|
||||||
luminance_max(-3.f),
|
|
||||||
exposure_correction(0.0f),
|
|
||||||
speed_dark_bright(1000.f),
|
|
||||||
speed_bright_dark(1000.f),
|
|
||||||
center_weight_power(1.f)
|
|
||||||
{}
|
|
@ -30,7 +30,14 @@ struct AutoExposure
|
|||||||
/// @brief Power value for center-weighted metering. Value of 1.0 measures entire screen uniformly
|
/// @brief Power value for center-weighted metering. Value of 1.0 measures entire screen uniformly
|
||||||
float center_weight_power;
|
float center_weight_power;
|
||||||
|
|
||||||
AutoExposure();
|
constexpr AutoExposure()
|
||||||
|
: luminance_min(-3.f),
|
||||||
|
luminance_max(-3.f),
|
||||||
|
exposure_correction(0.0f),
|
||||||
|
speed_dark_bright(1000.f),
|
||||||
|
speed_bright_dark(1000.f),
|
||||||
|
center_weight_power(1.f)
|
||||||
|
{}
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Describes ambient light settings for a player
|
/** Describes ambient light settings for a player
|
||||||
|
Reference in New Issue
Block a user