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;
}
}
![](/proxy.php?image=https%3A%2F%2Fi.imgur.com%2FZAlQrQZ.png&hash=9590c141005ebfd39a57e1cd9ffd19d3)