summaryrefslogtreecommitdiffstats
path: root/src/render/Shadows.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-07-29 18:32:37 +0200
committereray orçunus <erayorcunus@gmail.com>2020-07-29 18:32:37 +0200
commit0009558fcb0833ccdf2dcaec9d83b0413125fa5f (patch)
tree91a6258d27a8840c9020ccfbe3c1afaa528d3df5 /src/render/Shadows.cpp
parentFix Win32 OAL build (diff)
parentUpdate README.md (diff)
downloadre3-0009558fcb0833ccdf2dcaec9d83b0413125fa5f.tar
re3-0009558fcb0833ccdf2dcaec9d83b0413125fa5f.tar.gz
re3-0009558fcb0833ccdf2dcaec9d83b0413125fa5f.tar.bz2
re3-0009558fcb0833ccdf2dcaec9d83b0413125fa5f.tar.lz
re3-0009558fcb0833ccdf2dcaec9d83b0413125fa5f.tar.xz
re3-0009558fcb0833ccdf2dcaec9d83b0413125fa5f.tar.zst
re3-0009558fcb0833ccdf2dcaec9d83b0413125fa5f.zip
Diffstat (limited to 'src/render/Shadows.cpp')
-rw-r--r--src/render/Shadows.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/render/Shadows.cpp b/src/render/Shadows.cpp
index d07c302a..c169c351 100644
--- a/src/render/Shadows.cpp
+++ b/src/render/Shadows.cpp
@@ -796,6 +796,8 @@ CShadows::RenderStaticShadows(void)
RwRenderStateSet(rwRENDERSTATEVERTEXALPHAENABLE, (void *)TRUE);
RwRenderStateSet(rwRENDERSTATEFOGENABLE, (void *)FALSE);
+ SetAlphaTest(0);
+
for ( int32 i = 0; i < MAX_STATICSHADOWS; i++ )
aStaticShadows[i].m_bRendered = false;
@@ -849,6 +851,7 @@ CShadows::RenderStaticShadows(void)
RenderBuffer::RenderStuffInBuffer();
}
}
+ RestoreAlphaTest();
RwRenderStateSet(rwRENDERSTATEVERTEXALPHAENABLE, (void *)FALSE);
RwRenderStateSet(rwRENDERSTATEZWRITEENABLE, (void *)TRUE);