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

#include <match_render_3d_tuning.h>

Static Public Attributes

static constexpr int STRIPES = 18
 
static constexpr float SURROUND_X = 9.0f
 
static constexpr float SURROUND_Y = 7.0f
 
static constexpr float OUTSIDE_EXTENT = 140.0f
 
static constexpr int STRIPE_COLUMNS = 2
 
static constexpr int ROWS = 16
 
static constexpr float STRIPE_CONTRAST = 0.055f
 
static constexpr float STRIPE_SIDE_SHARE = 0.4f
 
static constexpr float NOISE_METRES = 7.0f
 
static constexpr float NOISE_STRENGTH = 0.09f
 
static constexpr float FINE_NOISE_METRES = 2.2f
 
static constexpr float FINE_NOISE_STRENGTH = 0.05f
 
static constexpr ImU32 WEAR_COLOR = IM_COL32(78, 70, 40, 255)
 
static constexpr std::uint8_t WEAR_ALPHA = 78
 
static constexpr float SPOT_WEAR_RADIUS = 1.3f
 
static constexpr float GOALMOUTH_DEPTH = 2.4f
 
static constexpr float GOALMOUTH_WIDTH = 3.4f
 
static constexpr int LINESMAN_SCUFFS = 5
 
static constexpr float LINESMAN_OFFSET = 1.4f
 
static constexpr float LINESMAN_HALF_WIDTH = 0.55f
 
static constexpr std::uint8_t LINESMAN_ALPHA = 46
 
static constexpr float VIGNETTE_LENGTH = 0.16f
 
static constexpr float VIGNETTE_WIDTH = 0.20f
 
static constexpr ImU32 PITCH_COLOR = IM_COL32(52, 128, 50, 255)
 
static constexpr ImU32 SURROUND_COLOR = IM_COL32(40, 104, 44, 255)
 
static constexpr ImU32 OUTSIDE_COLOR = IM_COL32(20, 24, 26, 255)
 

Member Data Documentation

◆ FINE_NOISE_METRES

constexpr float MatchRender3DTuning::Grass::FINE_NOISE_METRES = 2.2f
staticconstexpr

◆ FINE_NOISE_STRENGTH

constexpr float MatchRender3DTuning::Grass::FINE_NOISE_STRENGTH = 0.05f
staticconstexpr

◆ GOALMOUTH_DEPTH

constexpr float MatchRender3DTuning::Grass::GOALMOUTH_DEPTH = 2.4f
staticconstexpr

◆ GOALMOUTH_WIDTH

constexpr float MatchRender3DTuning::Grass::GOALMOUTH_WIDTH = 3.4f
staticconstexpr

◆ LINESMAN_ALPHA

constexpr std::uint8_t MatchRender3DTuning::Grass::LINESMAN_ALPHA = 46
staticconstexpr

◆ LINESMAN_HALF_WIDTH

constexpr float MatchRender3DTuning::Grass::LINESMAN_HALF_WIDTH = 0.55f
staticconstexpr

◆ LINESMAN_OFFSET

constexpr float MatchRender3DTuning::Grass::LINESMAN_OFFSET = 1.4f
staticconstexpr

◆ LINESMAN_SCUFFS

constexpr int MatchRender3DTuning::Grass::LINESMAN_SCUFFS = 5
staticconstexpr

Assistant referees' paths along the touchlines.

◆ NOISE_METRES

constexpr float MatchRender3DTuning::Grass::NOISE_METRES = 7.0f
staticconstexpr

◆ NOISE_STRENGTH

constexpr float MatchRender3DTuning::Grass::NOISE_STRENGTH = 0.09f
staticconstexpr

◆ OUTSIDE_COLOR

constexpr ImU32 MatchRender3DTuning::Grass::OUTSIDE_COLOR = IM_COL32(20, 24, 26, 255)
staticconstexpr

◆ OUTSIDE_EXTENT

constexpr float MatchRender3DTuning::Grass::OUTSIDE_EXTENT = 140.0f
staticconstexpr

◆ PITCH_COLOR

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

◆ ROWS

constexpr int MatchRender3DTuning::Grass::ROWS = 16
staticconstexpr

◆ SPOT_WEAR_RADIUS

constexpr float MatchRender3DTuning::Grass::SPOT_WEAR_RADIUS = 1.3f
staticconstexpr

◆ STRIPE_COLUMNS

constexpr int MatchRender3DTuning::Grass::STRIPE_COLUMNS = 2
staticconstexpr

Grid resolution of the playing surface (columns per stripe, rows).

◆ STRIPE_CONTRAST

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

Stripe brightness swing: blades leaning away from the camera look lighter, so the pattern is strongest looking along the mowing direction (across the pitch) and flips when looking the other way.

◆ STRIPE_SIDE_SHARE

constexpr float MatchRender3DTuning::Grass::STRIPE_SIDE_SHARE = 0.4f
staticconstexpr

◆ STRIPES

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

◆ SURROUND_COLOR

constexpr ImU32 MatchRender3DTuning::Grass::SURROUND_COLOR = IM_COL32(40, 104, 44, 255)
staticconstexpr

◆ SURROUND_X

constexpr float MatchRender3DTuning::Grass::SURROUND_X = 9.0f
staticconstexpr

◆ SURROUND_Y

constexpr float MatchRender3DTuning::Grass::SURROUND_Y = 7.0f
staticconstexpr

◆ VIGNETTE_LENGTH

constexpr float MatchRender3DTuning::Grass::VIGNETTE_LENGTH = 0.16f
staticconstexpr

◆ VIGNETTE_WIDTH

constexpr float MatchRender3DTuning::Grass::VIGNETTE_WIDTH = 0.20f
staticconstexpr

◆ WEAR_ALPHA

constexpr std::uint8_t MatchRender3DTuning::Grass::WEAR_ALPHA = 78
staticconstexpr

◆ WEAR_COLOR

constexpr ImU32 MatchRender3DTuning::Grass::WEAR_COLOR = IM_COL32(78, 70, 40, 255)
staticconstexpr

Worn patches: scuffed turf over soil. Darker than the grass, so the blend never reads as a light spot on the darker stripes.


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