mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2025-01-31 06:57:28 +05:00
Correct Z write for rendering weapons and muzzleflashes (fixes both in fact)
This commit is contained in:
parent
0d7cd7dec9
commit
3a75bff65f
1 changed files with 3 additions and 1 deletions
|
@ -409,9 +409,11 @@ void RenderWeaponPedsForPC()
|
||||||
{
|
{
|
||||||
RwScopedRenderState vertexAlpha(rwRENDERSTATEVERTEXALPHAENABLE);
|
RwScopedRenderState vertexAlpha(rwRENDERSTATEVERTEXALPHAENABLE);
|
||||||
RwScopedRenderState zWrite(rwRENDERSTATEZWRITEENABLE);
|
RwScopedRenderState zWrite(rwRENDERSTATEZWRITEENABLE);
|
||||||
|
RwScopedRenderState fogEnable(rwRENDERSTATEFOGENABLE);
|
||||||
|
|
||||||
RwRenderStateSet(rwRENDERSTATEVERTEXALPHAENABLE, reinterpret_cast<void*>(TRUE));
|
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();
|
const bool renderWeapon = IgnoresWeaponPedsForPCFix();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue