nixware.cc
-
Автор темы
- #1
C++:
bool g_override_lighting = false;
float g_lighting_color[ 3 ] = { 1.f, 0.f, 0.f };
float g_lighting_brightness = 5.f;
// scenesystem.dll "E8 ? ? ? ? 4C 8B 8F"
void __fastcall setup_lighting( __int64 a1, __int64 a2 )
{
o_setup_lighting( a1, a2 );
if ( g_override_lighting )
{
for ( int i = 0; i < 3; i++ )
reinterpret_cast< float* >( a1 + 4 )[ i ] = g_lighting_color[ i ] * g_lighting_brightness;
}
}