Public Member Functions | |
void | onSettingsChange (const std::string &name) |
void | setSky (Sky *sky) |
GameGlobalShaderConstantSetter (Sky *sky, Client *client) | |
~GameGlobalShaderConstantSetter () | |
void | onSetConstants (video::IMaterialRendererServices *services) override |
void | onSetMaterial (const video::SMaterial &material) override |
Public Member Functions inherited from IShaderConstantSetter | |
virtual | ~IShaderConstantSetter ()=default |
Static Public Member Functions | |
static void | settingsCallback (const std::string &name, void *userdata) |
Static Private Attributes | |
static constexpr std::array< const char *, 1 > | SETTING_CALLBACKS |
|
inline |
References g_settings, Settings::getBool(), Settings::getFloat(), m_bloom_enabled, m_user_exposure_compensation, m_volumetric_light_enabled, Settings::registerChangedCallback(), SETTING_CALLBACKS, and settingsCallback().
|
inline |
References Settings::deregisterAllChangedCallbacks(), and g_settings.
|
inlineoverridevirtual |
Implements IShaderConstantSetter.
References BS, AutoExposure::center_weight_power, AutoExposure::exposure_correction, get_sunlight_color(), Client::getCamera(), Camera::getCameraNode(), Environment::getDayNightRatio(), Client::getEnv(), ClientEnvironment::getFrameTime(), ClientEnvironment::getFrameTimeDelta(), LocalPlayer::getLighting(), ClientEnvironment::getLocalPlayer(), Client::getMinimap(), Sky::getMoonDirection(), Sky::getMoonVisible(), Camera::getOffset(), Camera::getPosition(), Sky::getSunDirection(), Sky::getSunVisible(), Minimap::getYawVec(), intToFloat(), AutoExposure::luminance_max, AutoExposure::luminance_min, m_animation_timer_delta_pixel, m_animation_timer_delta_vertex, m_animation_timer_pixel, m_animation_timer_vertex, m_bloom_enabled, m_bloom_intensity_pixel, m_bloom_radius_pixel, m_bloom_strength_pixel, m_camera_offset_pixel, m_camera_offset_vertex, m_camera_position_pixel, m_client, m_day_light, m_exposure_params_pixel, m_minimap_yaw, m_moon_brightness_pixel, m_moon_position_pixel, m_saturation_pixel, m_sky, m_sun_brightness_pixel, m_sun_position_pixel, m_texel_size0, m_texel_size0_pixel, m_texel_size0_vertex, m_texture0, m_texture1, m_texture2, m_texture3, m_user_exposure_compensation, m_volumetric_light_enabled, m_volumetric_light_strength_pixel, CachedShaderSetting< T, count, cache >::set(), AutoExposure::speed_bright_dark, and AutoExposure::speed_dark_bright.
|
inlineoverridevirtual |
Reimplemented from IShaderConstantSetter.
References m_texel_size0.
|
inline |
References g_settings, Settings::getFloat(), and m_user_exposure_compensation.
Referenced by settingsCallback().
|
inlinestatic |
References onSettingsChange().
Referenced by GameGlobalShaderConstantSetter().
|
private |
Referenced by onSetConstants().
|
private |
Referenced by onSetConstants().
|
private |
Referenced by onSetConstants().
|
private |
Referenced by onSetConstants().
|
private |
Referenced by GameGlobalShaderConstantSetter(), and onSetConstants().
|
private |
Referenced by onSetConstants().
|
private |
Referenced by onSetConstants().
|
private |
Referenced by onSetConstants().
|
private |
Referenced by onSetConstants().
|
private |
Referenced by onSetConstants().
|
private |
Referenced by onSetConstants().
|
private |
|
private |
Referenced by onSetConstants().
|
private |
Referenced by onSetConstants().
|
private |
Referenced by onSetConstants().
|
private |
Referenced by onSetConstants().
|
private |
Referenced by onSetConstants().
|
private |
Referenced by onSetConstants().
|
private |
Referenced by onSetConstants().
|
private |
Referenced by onSetConstants(), and setSky().
|
private |
Referenced by onSetConstants().
|
private |
Referenced by onSetConstants().
|
private |
Referenced by onSetConstants(), and onSetMaterial().
|
private |
Referenced by onSetConstants().
|
private |
Referenced by onSetConstants().
|
private |
Referenced by onSetConstants().
|
private |
Referenced by onSetConstants().
|
private |
Referenced by onSetConstants().
|
private |
Referenced by onSetConstants().
|
private |
Referenced by GameGlobalShaderConstantSetter(), onSetConstants(), and onSettingsChange().
|
private |
Referenced by GameGlobalShaderConstantSetter(), and onSetConstants().
|
private |
Referenced by onSetConstants().
|
staticconstexprprivate |
Referenced by GameGlobalShaderConstantSetter().