summaryrefslogtreecommitdiffstats
path: root/src/rw/VisibilityPlugins.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-10-29 19:11:47 +0100
committeraap <aap@papnet.eu>2020-10-29 19:11:47 +0100
commite97366c023ee81d0feefa131ed38c77131d29f40 (patch)
treeec7f378fbb88e855caa8764da2f6186946bf60dd /src/rw/VisibilityPlugins.cpp
parentMerge branch 'master' of github.com:GTAmodding/re3 (diff)
downloadre3-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.cpp9
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