diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-07-29 14:34:57 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-07-29 14:34:57 +0200 |
commit | acdc52116ea78b4ebf065b23b0cd48d7e41c711a (patch) | |
tree | d50d8667825d3d9e9f99d4948d349e1ffc4e3f97 /src/render/Shadows.cpp | |
parent | some fakerw additions for shadows; update librw (diff) | |
parent | Add forgotten file (diff) | |
download | re3-acdc52116ea78b4ebf065b23b0cd48d7e41c711a.tar re3-acdc52116ea78b4ebf065b23b0cd48d7e41c711a.tar.gz re3-acdc52116ea78b4ebf065b23b0cd48d7e41c711a.tar.bz2 re3-acdc52116ea78b4ebf065b23b0cd48d7e41c711a.tar.lz re3-acdc52116ea78b4ebf065b23b0cd48d7e41c711a.tar.xz re3-acdc52116ea78b4ebf065b23b0cd48d7e41c711a.tar.zst re3-acdc52116ea78b4ebf065b23b0cd48d7e41c711a.zip |
Diffstat (limited to 'src/render/Shadows.cpp')
-rw-r--r-- | src/render/Shadows.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/render/Shadows.cpp b/src/render/Shadows.cpp index fac35aeb..c4d14fdc 100644 --- a/src/render/Shadows.cpp +++ b/src/render/Shadows.cpp @@ -797,6 +797,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; @@ -850,6 +852,7 @@ CShadows::RenderStaticShadows(void) RenderBuffer::RenderStuffInBuffer(); } } + RestoreAlphaTest(); RwRenderStateSet(rwRENDERSTATEVERTEXALPHAENABLE, (void *)FALSE); RwRenderStateSet(rwRENDERSTATEZWRITEENABLE, (void *)TRUE); |