| 105 | } |
| 106 | |
| 107 | static 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 | |
| 116 | MapDrawerSoft::MapDrawerSoft( |
| 117 | Settings& settings, |
no outgoing calls
no test coverage detected