MCPcopy Create free account
hub / github.com/Panzerschrek/Chasm-Reverse / ScaleLightmapLight

Function ScaleLightmapLight

PanzerChasm/client/map_drawer_soft.cpp:107–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107static fixed16_t ScaleLightmapLight( const unsigned char lightmap_value )
108{
109 // Overbright constant must be equal to same constant in shader. See shaders/constants.glsl.
110 static constexpr float c_overbright= 1.3f;
111 static constexpr fixed16_t scale= static_cast<fixed16_t>( ( c_overbright * 65536.0f ) / 255.0f );
112
113 return lightmap_value * scale;
114}
115
116MapDrawerSoft::MapDrawerSoft(
117 Settings& settings,

Callers 5

DrawWeaponMethod · 0.85
DrawModelMethod · 0.85
DrawEffectsSpritesMethod · 0.85
GetWallSurfaceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected