Luanti 5.15.0-dev
 
Loading...
Searching...
No Matches
lighting.h
Go to the documentation of this file.
1// Luanti
2// SPDX-License-Identifier: LGPL-2.1-or-later
3// Copyright (C) 2021 x2048, Dmitry Kostenko <codeforsmile@gmail.com>
4
5#pragma once
6#include "SColor.h"
7
8
41
45{
47 float shadow_intensity {0.0f};
48 float saturation {1.0f};
50 video::SColor shadow_tint {255, 0, 0, 0};
51 float bloom_intensity {0.05f};
53 float bloom_radius {1.0f};
54};
Parameters for automatic exposure compensation.
Definition lighting.h:18
float luminance_max
Maximum boundary for computed luminance.
Definition lighting.h:22
float exposure_correction
Luminance bias. Higher values make the scene darker, can be negative.
Definition lighting.h:24
float speed_dark_bright
Speed of transition from dark to bright scenes.
Definition lighting.h:26
float luminance_min
Minimum boundary for computed luminance.
Definition lighting.h:20
float speed_bright_dark
Speed of transition from bright to dark scenes.
Definition lighting.h:28
float center_weight_power
Power value for center-weighted metering. Value of 1.0 measures entire screen uniformly.
Definition lighting.h:30
constexpr AutoExposure()
Definition lighting.h:32
Describes ambient light settings for a player.
Definition lighting.h:45
float volumetric_light_strength
Definition lighting.h:49
float bloom_radius
Definition lighting.h:53
float shadow_intensity
Definition lighting.h:47
float bloom_strength_factor
Definition lighting.h:52
float saturation
Definition lighting.h:48
video::SColor shadow_tint
Definition lighting.h:50
float bloom_intensity
Definition lighting.h:51
AutoExposure exposure
Definition lighting.h:46