Player12
An open source football management simulator
Loading...
Searching...
No Matches
MatchRender3DTuning::Day Struct Referencefinal

#include <match_render_3d_tuning.h>

Static Public Attributes

static constexpr int DAY_FROM_MINUTES = 10 * 60
 
static constexpr int DAY_UNTIL_MINUTES = 17 * 60 + 30
 
static constexpr float AMBIENT = 0.58f
 
static constexpr float DIFFUSE = 0.62f
 
static constexpr float SKY = 0.1f
 
static constexpr float SUN_X = -0.45f
 
static constexpr float SUN_Y = -0.55f
 
static constexpr float SUN_Z = 0.7f
 
static constexpr float GRASS_LIGHT = 1.06f
 
static constexpr float STAND_AMBIENT = 0.56f
 
static constexpr float STAND_DIFFUSE = 0.6f
 
static constexpr float STAND_SKY = 0.12f
 
static constexpr ImU32 CONCRETE_COLOR = IM_COL32(168, 166, 158, 255)
 
static constexpr ImU32 WALL_COLOR = IM_COL32(112, 114, 120, 255)
 
static constexpr ImU32 SEAT_COLOR = IM_COL32(48, 66, 118, 255)
 
static constexpr ImU32 ROOF_UNDER_COLOR = IM_COL32(96, 100, 108, 255)
 
static constexpr ImU32 ROOF_TOP_COLOR = IM_COL32(200, 202, 208, 255)
 
static constexpr ImU32 FASCIA_COLOR = IM_COL32(38, 50, 88, 255)
 
static constexpr ImU32 WINDOW_COLOR = IM_COL32(70, 84, 98, 255)
 
static constexpr ImU32 MAST_COLOR = IM_COL32(156, 160, 168, 255)
 
static constexpr ImU32 LAMP_OFF_COLOR = IM_COL32(196, 200, 206, 255)
 
static constexpr ImU32 OUTSIDE_COLOR = IM_COL32(86, 90, 88, 255)
 
static constexpr std::uint8_t STAND_SHADOW_ALPHA = 92
 
static constexpr float STAND_SHADOW_PENUMBRA = 0.9f
 
static constexpr float SHADE_AMBIENT = 0.66f
 
static constexpr ImU32 TOP_COLOR = IM_COL32(58, 118, 196, 255)
 
static constexpr ImU32 MIDDLE_COLOR = IM_COL32(116, 170, 226, 255)
 
static constexpr ImU32 HORIZON_COLOR = IM_COL32(200, 222, 236, 255)
 
static constexpr ImU32 VIGNETTE_COLOR = IM_COL32(0, 0, 0, 48)
 

Detailed Description

Daylight preset: an afternoon sun high over the main stand's left shoulder, a brighter sward and a blue sky. Chosen from the kick-off time (DAY_FROM_MINUTES to DAY_UNTIL_MINUTES) or by the view's day toggle.

Member Data Documentation

◆ AMBIENT

constexpr float MatchRender3DTuning::Day::AMBIENT = 0.58f
staticconstexpr

◆ CONCRETE_COLOR

constexpr ImU32 MatchRender3DTuning::Day::CONCRETE_COLOR = IM_COL32(168, 166, 158, 255)
staticconstexpr

Daylight colours of the stands (lit by the sun on build).

◆ DAY_FROM_MINUTES

constexpr int MatchRender3DTuning::Day::DAY_FROM_MINUTES = 10 * 60
staticconstexpr

◆ DAY_UNTIL_MINUTES

constexpr int MatchRender3DTuning::Day::DAY_UNTIL_MINUTES = 17 * 60 + 30
staticconstexpr

◆ DIFFUSE

constexpr float MatchRender3DTuning::Day::DIFFUSE = 0.62f
staticconstexpr

◆ FASCIA_COLOR

constexpr ImU32 MatchRender3DTuning::Day::FASCIA_COLOR = IM_COL32(38, 50, 88, 255)
staticconstexpr

◆ GRASS_LIGHT

constexpr float MatchRender3DTuning::Day::GRASS_LIGHT = 1.06f
staticconstexpr

The sward by day (even light, no floodlight falloff).

◆ HORIZON_COLOR

constexpr ImU32 MatchRender3DTuning::Day::HORIZON_COLOR = IM_COL32(200, 222, 236, 255)
staticconstexpr

◆ LAMP_OFF_COLOR

constexpr ImU32 MatchRender3DTuning::Day::LAMP_OFF_COLOR = IM_COL32(196, 200, 206, 255)
staticconstexpr

◆ MAST_COLOR

constexpr ImU32 MatchRender3DTuning::Day::MAST_COLOR = IM_COL32(156, 160, 168, 255)
staticconstexpr

◆ MIDDLE_COLOR

constexpr ImU32 MatchRender3DTuning::Day::MIDDLE_COLOR = IM_COL32(116, 170, 226, 255)
staticconstexpr

◆ OUTSIDE_COLOR

constexpr ImU32 MatchRender3DTuning::Day::OUTSIDE_COLOR = IM_COL32(86, 90, 88, 255)
staticconstexpr

◆ ROOF_TOP_COLOR

constexpr ImU32 MatchRender3DTuning::Day::ROOF_TOP_COLOR = IM_COL32(200, 202, 208, 255)
staticconstexpr

◆ ROOF_UNDER_COLOR

constexpr ImU32 MatchRender3DTuning::Day::ROOF_UNDER_COLOR = IM_COL32(96, 100, 108, 255)
staticconstexpr

◆ SEAT_COLOR

constexpr ImU32 MatchRender3DTuning::Day::SEAT_COLOR = IM_COL32(48, 66, 118, 255)
staticconstexpr

◆ SHADE_AMBIENT

constexpr float MatchRender3DTuning::Day::SHADE_AMBIENT = 0.66f
staticconstexpr

Players in a stand's shadow lose the sun but keep the sky.

◆ SKY

constexpr float MatchRender3DTuning::Day::SKY = 0.1f
staticconstexpr

◆ STAND_AMBIENT

constexpr float MatchRender3DTuning::Day::STAND_AMBIENT = 0.56f
staticconstexpr

Stands by day: sky fill, sun and the sky from above.

◆ STAND_DIFFUSE

constexpr float MatchRender3DTuning::Day::STAND_DIFFUSE = 0.6f
staticconstexpr

◆ STAND_SHADOW_ALPHA

constexpr std::uint8_t MatchRender3DTuning::Day::STAND_SHADOW_ALPHA = 92
staticconstexpr

Roof shadows on the ground: darkness and soft edge (m).

◆ STAND_SHADOW_PENUMBRA

constexpr float MatchRender3DTuning::Day::STAND_SHADOW_PENUMBRA = 0.9f
staticconstexpr

◆ STAND_SKY

constexpr float MatchRender3DTuning::Day::STAND_SKY = 0.12f
staticconstexpr

◆ SUN_X

constexpr float MatchRender3DTuning::Day::SUN_X = -0.45f
staticconstexpr

Towards the sun (normalised on use).

◆ SUN_Y

constexpr float MatchRender3DTuning::Day::SUN_Y = -0.55f
staticconstexpr

◆ SUN_Z

constexpr float MatchRender3DTuning::Day::SUN_Z = 0.7f
staticconstexpr

◆ TOP_COLOR

constexpr ImU32 MatchRender3DTuning::Day::TOP_COLOR = IM_COL32(58, 118, 196, 255)
staticconstexpr

◆ VIGNETTE_COLOR

constexpr ImU32 MatchRender3DTuning::Day::VIGNETTE_COLOR = IM_COL32(0, 0, 0, 48)
staticconstexpr

◆ WALL_COLOR

constexpr ImU32 MatchRender3DTuning::Day::WALL_COLOR = IM_COL32(112, 114, 120, 255)
staticconstexpr

◆ WINDOW_COLOR

constexpr ImU32 MatchRender3DTuning::Day::WINDOW_COLOR = IM_COL32(70, 84, 98, 255)
staticconstexpr

The documentation for this struct was generated from the following file: