Player12
An open source football management simulator
Loading...
Searching...
No Matches
MatchRender2DTuning::Grass Struct Referencefinal

#include <match_render_2d_tuning.h>

Static Public Attributes

static constexpr int STRIPES = 18
 
static constexpr int BANDS = 8
 
static constexpr int CELL_SPLIT = 2
 
static constexpr float STRIPE_CONTRAST = 0.055f
 
static constexpr float BAND_CONTRAST = 0.018f
 
static constexpr float NOISE_METRES = 9.0f
 
static constexpr float NOISE_STRENGTH = 0.08f
 
static constexpr float FINE_NOISE_METRES = 2.6f
 
static constexpr float FINE_NOISE_STRENGTH = 0.045f
 
static constexpr float LIGHT_CENTRE = 1.06f
 
static constexpr float LIGHT_EDGE = 0.86f
 
static constexpr ImU32 PITCH_COLOR = IM_COL32(50, 128, 52, 255)
 
static constexpr ImU32 RUN_OFF_COLOR = IM_COL32(40, 106, 44, 255)
 
static constexpr ImU32 WEAR_COLOR = IM_COL32(84, 78, 44, 255)
 
static constexpr std::uint8_t WEAR_ALPHA = 70
 
static constexpr int WEAR_SEGMENTS = 12
 

Detailed Description

Mown surface: stripes along the length, cross bands for a checker.

Member Data Documentation

◆ BAND_CONTRAST

constexpr float MatchRender2DTuning::Grass::BAND_CONTRAST = 0.018f
staticconstexpr

◆ BANDS

constexpr int MatchRender2DTuning::Grass::BANDS = 8
staticconstexpr

◆ CELL_SPLIT

constexpr int MatchRender2DTuning::Grass::CELL_SPLIT = 2
staticconstexpr

Each cell is split so the lighting gradient stays smooth.

◆ FINE_NOISE_METRES

constexpr float MatchRender2DTuning::Grass::FINE_NOISE_METRES = 2.6f
staticconstexpr

◆ FINE_NOISE_STRENGTH

constexpr float MatchRender2DTuning::Grass::FINE_NOISE_STRENGTH = 0.045f
staticconstexpr

◆ LIGHT_CENTRE

constexpr float MatchRender2DTuning::Grass::LIGHT_CENTRE = 1.06f
staticconstexpr

Soft overhead light: bright centre, darker touchlines and corners.

◆ LIGHT_EDGE

constexpr float MatchRender2DTuning::Grass::LIGHT_EDGE = 0.86f
staticconstexpr

◆ NOISE_METRES

constexpr float MatchRender2DTuning::Grass::NOISE_METRES = 9.0f
staticconstexpr

◆ NOISE_STRENGTH

constexpr float MatchRender2DTuning::Grass::NOISE_STRENGTH = 0.08f
staticconstexpr

◆ PITCH_COLOR

constexpr ImU32 MatchRender2DTuning::Grass::PITCH_COLOR = IM_COL32(50, 128, 52, 255)
staticconstexpr

◆ RUN_OFF_COLOR

constexpr ImU32 MatchRender2DTuning::Grass::RUN_OFF_COLOR = IM_COL32(40, 106, 44, 255)
staticconstexpr

◆ STRIPE_CONTRAST

constexpr float MatchRender2DTuning::Grass::STRIPE_CONTRAST = 0.055f
staticconstexpr

◆ STRIPES

constexpr int MatchRender2DTuning::Grass::STRIPES = 18
staticconstexpr

◆ WEAR_ALPHA

constexpr std::uint8_t MatchRender2DTuning::Grass::WEAR_ALPHA = 70
staticconstexpr

◆ WEAR_COLOR

constexpr ImU32 MatchRender2DTuning::Grass::WEAR_COLOR = IM_COL32(84, 78, 44, 255)
staticconstexpr

Worn goalmouths and spots: darker, browner turf.

◆ WEAR_SEGMENTS

constexpr int MatchRender2DTuning::Grass::WEAR_SEGMENTS = 12
staticconstexpr

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