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

#include <match_render_3d_tuning.h>

Static Public Attributes

static constexpr float CONTACT_RADIUS = 0.42f
 
static constexpr float BLADE_HALF_WIDTH = 0.2f
 
static constexpr int SEGMENTS = 10
 
static constexpr ImU32 CONTACT_COLOR = IM_COL32(0, 0, 0, 120)
 
static constexpr std::uint8_t BLADE_ALPHA = 36
 
static constexpr float CLOSE_FADE_START_PIXELS = 70.0f
 
static constexpr float CLOSE_FADE_FULL_PIXELS = 190.0f
 
static constexpr float CLOSE_SHARE = 0.5f
 
static constexpr float CORE_RADIUS_SHARE = 0.5f
 
static constexpr float CORE_ALPHA_SHARE = 0.62f
 
static constexpr std::uint8_t SUN_ALPHA = 92
 
static constexpr float SUN_LENGTH_SHARE = 0.95f
 
static constexpr float MIN_LAMP_SHARE = 0.45f
 
static constexpr float MAX_LAMP_SHARE = 1.8f
 
static constexpr float MIN_BLADE = 0.8f
 
static constexpr float MAX_BLADE = 2.6f
 
static constexpr float PENUMBRA = 0.2f
 
static constexpr float RING_RADIUS = 0.62f
 
static constexpr int RING_SEGMENTS = 20
 
static constexpr float RING_THICKNESS = 2.2f
 
static constexpr float RING_PULSE = 0.08f
 
static constexpr float RING_PULSE_SPEED = 5.0f
 
static constexpr ImU32 RING_COLOR = IM_COL32(255, 214, 64, 235)
 

Member Data Documentation

◆ BLADE_ALPHA

constexpr std::uint8_t MatchRender3DTuning::Shadow::BLADE_ALPHA = 36
staticconstexpr

Darkness of one floodlight blade at an equal share of the light.

◆ BLADE_HALF_WIDTH

constexpr float MatchRender3DTuning::Shadow::BLADE_HALF_WIDTH = 0.2f
staticconstexpr

◆ CLOSE_FADE_FULL_PIXELS

constexpr float MatchRender3DTuning::Shadow::CLOSE_FADE_FULL_PIXELS = 190.0f
staticconstexpr

◆ CLOSE_FADE_START_PIXELS

constexpr float MatchRender3DTuning::Shadow::CLOSE_FADE_START_PIXELS = 70.0f
staticconstexpr

Up close the four blades would read as a hard "X": they fade to CLOSE_SHARE of their darkness between these projected player heights.

◆ CLOSE_SHARE

constexpr float MatchRender3DTuning::Shadow::CLOSE_SHARE = 0.5f
staticconstexpr

◆ CONTACT_COLOR

constexpr ImU32 MatchRender3DTuning::Shadow::CONTACT_COLOR = IM_COL32(0, 0, 0, 120)
staticconstexpr

◆ CONTACT_RADIUS

constexpr float MatchRender3DTuning::Shadow::CONTACT_RADIUS = 0.42f
staticconstexpr

◆ CORE_ALPHA_SHARE

constexpr float MatchRender3DTuning::Shadow::CORE_ALPHA_SHARE = 0.62f
staticconstexpr

◆ CORE_RADIUS_SHARE

constexpr float MatchRender3DTuning::Shadow::CORE_RADIUS_SHARE = 0.5f
staticconstexpr

Soft profile: a ring at this share of the radius keeps this share of the centre darkness (a flatter core, a long feathered edge).

◆ MAX_BLADE

constexpr float MatchRender3DTuning::Shadow::MAX_BLADE = 2.6f
staticconstexpr

◆ MAX_LAMP_SHARE

constexpr float MatchRender3DTuning::Shadow::MAX_LAMP_SHARE = 1.8f
staticconstexpr

◆ MIN_BLADE

constexpr float MatchRender3DTuning::Shadow::MIN_BLADE = 0.8f
staticconstexpr

◆ MIN_LAMP_SHARE

constexpr float MatchRender3DTuning::Shadow::MIN_LAMP_SHARE = 0.45f
staticconstexpr

◆ PENUMBRA

constexpr float MatchRender3DTuning::Shadow::PENUMBRA = 0.2f
staticconstexpr

Soft edge added around each blade (metres).

◆ RING_COLOR

constexpr ImU32 MatchRender3DTuning::Shadow::RING_COLOR = IM_COL32(255, 214, 64, 235)
staticconstexpr

◆ RING_PULSE

constexpr float MatchRender3DTuning::Shadow::RING_PULSE = 0.08f
staticconstexpr

◆ RING_PULSE_SPEED

constexpr float MatchRender3DTuning::Shadow::RING_PULSE_SPEED = 5.0f
staticconstexpr

◆ RING_RADIUS

constexpr float MatchRender3DTuning::Shadow::RING_RADIUS = 0.62f
staticconstexpr

◆ RING_SEGMENTS

constexpr int MatchRender3DTuning::Shadow::RING_SEGMENTS = 20
staticconstexpr

◆ RING_THICKNESS

constexpr float MatchRender3DTuning::Shadow::RING_THICKNESS = 2.2f
staticconstexpr

◆ SEGMENTS

constexpr int MatchRender3DTuning::Shadow::SEGMENTS = 10
staticconstexpr

◆ SUN_ALPHA

constexpr std::uint8_t MatchRender3DTuning::Shadow::SUN_ALPHA = 92
staticconstexpr

Daylight: one sun shadow per player instead of four blades.

◆ SUN_LENGTH_SHARE

constexpr float MatchRender3DTuning::Shadow::SUN_LENGTH_SHARE = 0.95f
staticconstexpr

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