mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-12-29 15:23:02 +05:00
Fixed a conflict with Shadows Settings Extender
This commit is contained in:
parent
c096155db2
commit
65c7702da5
1 changed files with 9 additions and 2 deletions
|
@ -2790,6 +2790,14 @@ BOOL InjectDelayedPatches_10()
|
||||||
{
|
{
|
||||||
Patch<DWORD>(0x70665C, 0x52909090);
|
Patch<DWORD>(0x70665C, 0x52909090);
|
||||||
InjectHook(0x706662, &CShadowCamera::Update);
|
InjectHook(0x706662, &CShadowCamera::Update);
|
||||||
|
|
||||||
|
// Disable alpha test for stored shadows
|
||||||
|
{
|
||||||
|
using namespace StaticShadowAlphaFix;
|
||||||
|
|
||||||
|
ReadCall( 0x53E0C8, orgRenderStoredShadows );
|
||||||
|
InjectHook( 0x53E0C8, RenderStoredShadows_StateFix );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Bigger streamed entity linked lists
|
// Bigger streamed entity linked lists
|
||||||
|
@ -4226,8 +4234,7 @@ void Patch_SA_10()
|
||||||
ReadCall( 0x53E0C3, orgRenderStaticShadows );
|
ReadCall( 0x53E0C3, orgRenderStaticShadows );
|
||||||
InjectHook( 0x53E0C3, RenderStaticShadows_StateFix );
|
InjectHook( 0x53E0C3, RenderStaticShadows_StateFix );
|
||||||
|
|
||||||
ReadCall( 0x53E0C8, orgRenderStoredShadows );
|
// Stored shadows conflict with SSE and are patched only when it's not installed
|
||||||
InjectHook( 0x53E0C8, RenderStoredShadows_StateFix );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue