mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-11-25 14:52:30 +01:00
Correct Z write for rendering weapons and muzzleflashes (fixes both in fact)
This commit is contained in:
parent
0d7cd7dec9
commit
3a75bff65f
@ -409,9 +409,11 @@ void RenderWeaponPedsForPC()
|
||||
{
|
||||
RwScopedRenderState vertexAlpha(rwRENDERSTATEVERTEXALPHAENABLE);
|
||||
RwScopedRenderState zWrite(rwRENDERSTATEZWRITEENABLE);
|
||||
RwScopedRenderState fogEnable(rwRENDERSTATEFOGENABLE);
|
||||
|
||||
RwRenderStateSet(rwRENDERSTATEVERTEXALPHAENABLE, reinterpret_cast<void*>(TRUE));
|
||||
RwRenderStateSet(rwRENDERSTATEZWRITEENABLE, FALSE);
|
||||
RwRenderStateSet(rwRENDERSTATEZWRITEENABLE, reinterpret_cast<void*>(TRUE));
|
||||
RwRenderStateSet(rwRENDERSTATEFOGENABLE, reinterpret_cast<void*>(TRUE));
|
||||
|
||||
const bool renderWeapon = IgnoresWeaponPedsForPCFix();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user