diff options
author | aap <aap@papnet.eu> | 2020-10-29 19:11:47 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-10-29 19:11:47 +0100 |
commit | e97366c023ee81d0feefa131ed38c77131d29f40 (patch) | |
tree | ec7f378fbb88e855caa8764da2f6186946bf60dd /src/rw/VisibilityPlugins.cpp | |
parent | Merge branch 'master' of github.com:GTAmodding/re3 (diff) | |
download | re3-e97366c023ee81d0feefa131ed38c77131d29f40.tar re3-e97366c023ee81d0feefa131ed38c77131d29f40.tar.gz re3-e97366c023ee81d0feefa131ed38c77131d29f40.tar.bz2 re3-e97366c023ee81d0feefa131ed38c77131d29f40.tar.lz re3-e97366c023ee81d0feefa131ed38c77131d29f40.tar.xz re3-e97366c023ee81d0feefa131ed38c77131d29f40.tar.zst re3-e97366c023ee81d0feefa131ed38c77131d29f40.zip |
Diffstat (limited to 'src/rw/VisibilityPlugins.cpp')
-rw-r--r-- | src/rw/VisibilityPlugins.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/rw/VisibilityPlugins.cpp b/src/rw/VisibilityPlugins.cpp index b2e252a0..c47cedca 100644 --- a/src/rw/VisibilityPlugins.cpp +++ b/src/rw/VisibilityPlugins.cpp @@ -1,5 +1,6 @@ #include "common.h" +#include "RwHelper.h" #include "templates.h" #include "Entity.h" #include "ModelInfo.h" @@ -158,6 +159,10 @@ CVisibilityPlugins::RenderFadingEntities(void) if(mi->m_noZwrite) #endif RwRenderStateSet(rwRENDERSTATEZWRITEENABLE, FALSE); +#ifdef EXTRA_MODEL_FLAGS + if(mi->m_bIsTree) + SetAlphaRef(128); +#endif if(e->bDistanceFade){ DeActivateDirectional(); @@ -168,6 +173,10 @@ CVisibilityPlugins::RenderFadingEntities(void) }else CRenderer::RenderOneNonRoad(e); +#ifdef EXTRA_MODEL_FLAGS + if(mi->m_bIsTree) + SetAlphaRef(2); +#endif #ifdef FIX_BUGS if(mi->GetModelType() == MITYPE_SIMPLE && mi->m_noZwrite) #else |