◆ GameGlobalShaderConstantSetter()
GameGlobalShaderConstantSetter::GameGlobalShaderConstantSetter |
( |
Sky * |
sky, |
|
|
bool * |
force_fog_off, |
|
|
f32 * |
fog_range, |
|
|
Client * |
client |
|
) |
| |
|
inline |
◆ ~GameGlobalShaderConstantSetter()
GameGlobalShaderConstantSetter::~GameGlobalShaderConstantSetter |
( |
| ) |
|
|
inline |
◆ onSetConstants()
void GameGlobalShaderConstantSetter::onSetConstants |
( |
video::IMaterialRendererServices * |
services | ) |
|
|
inlineoverridevirtual |
Implements IShaderConstantSetter.
References BS, get_sunlight_color(), Sky::getBgColor(), Client::getCamera(), Sky::getCurrentStarColor(), Environment::getDayNightRatio(), Client::getEnv(), LocalPlayer::getEyePosition(), ClientEnvironment::getLocalPlayer(), Client::getMinimap(), Camera::getOffset(), porting::getTimeMs(), Minimap::getYawVec(), intToFloat(), m_animation_timer_pixel, m_animation_timer_vertex, m_base_texture, m_camera_offset_pixel, m_camera_offset_vertex, m_client, m_day_light, m_eye_position_pixel, m_eye_position_vertex, m_fog_distance, m_fog_enabled, m_fog_range, m_force_fog_off, m_minimap_yaw, m_sky, m_sky_bg_color, m_star_color, and CachedShaderSetting< T, count >::set().
◆ onSettingsChange()
void GameGlobalShaderConstantSetter::onSettingsChange |
( |
const std::string & |
name | ) |
|
|
inline |
◆ setSky()
void GameGlobalShaderConstantSetter::setSky |
( |
Sky * |
sky | ) |
|
|
inline |
◆ settingsCallback()
static void GameGlobalShaderConstantSetter::settingsCallback |
( |
const std::string & |
name, |
|
|
void * |
userdata |
|
) |
| |
|
inlinestatic |
◆ m_animation_timer_pixel
◆ m_animation_timer_vertex
◆ m_base_texture
◆ m_camera_offset_pixel
◆ m_camera_offset_vertex
◆ m_client
Client* GameGlobalShaderConstantSetter::m_client |
|
private |
◆ m_day_light
◆ m_eye_position_pixel
◆ m_eye_position_vertex
◆ m_fog_distance
◆ m_fog_enabled
bool GameGlobalShaderConstantSetter::m_fog_enabled |
|
private |
◆ m_fog_range
f32* GameGlobalShaderConstantSetter::m_fog_range |
|
private |
◆ m_force_fog_off
bool* GameGlobalShaderConstantSetter::m_force_fog_off |
|
private |
◆ m_minimap_yaw
◆ m_sky
Sky* GameGlobalShaderConstantSetter::m_sky |
|
private |
◆ m_sky_bg_color
◆ m_star_color
The documentation for this class was generated from the following file: