Minetest 5.9.0-dev
 
Loading...
Searching...
No Matches
lighting.h
Go to the documentation of this file.
1/*
2Minetest
3Copyright (C) 2021 x2048, Dmitry Kostenko <codeforsmile@gmail.com>
4
5This program is free software; you can redistribute it and/or modify
6it under the terms of the GNU Lesser General Public License as published by
7the Free Software Foundation; either version 2.1 of the License, or
8(at your option) any later version.
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU Lesser General Public License for more details.
14
15You should have received a copy of the GNU Lesser General Public License along
16with this program; if not, write to the Free Software Foundation, Inc.,
1751 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18*/
19
20#pragma once
21
22
32{
45
47};
48
52{
54 float shadow_intensity {0.0f};
55 float saturation {1.0f};
57};
Parameters for automatic exposure compensation.
Definition: lighting.h:32
AutoExposure()
Definition: lighting.cpp:22
float luminance_max
Maximum boundary for computed luminance.
Definition: lighting.h:36
float exposure_correction
Luminance bias. Higher values make the scene darker, can be negative.
Definition: lighting.h:38
float speed_dark_bright
Speed of transition from dark to bright scenes.
Definition: lighting.h:40
float luminance_min
Minimum boundary for computed luminance.
Definition: lighting.h:34
float speed_bright_dark
Speed of transition from bright to dark scenes.
Definition: lighting.h:42
float center_weight_power
Power value for center-weighted metering. Value of 1.0 measures entire screen uniformly.
Definition: lighting.h:44
Describes ambient light settings for a player.
Definition: lighting.h:52
float volumetric_light_strength
Definition: lighting.h:56
float shadow_intensity
Definition: lighting.h:54
float saturation
Definition: lighting.h:55
AutoExposure exposure
Definition: lighting.h:53