diff options
author | aap <aap@papnet.eu> | 2021-02-28 19:07:32 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-06-24 20:32:43 +0200 |
commit | c58d98a39ea3fa5e1f515fbac96eb58350a6de3e (patch) | |
tree | 2f62df6b06c64af88786e6f2329a1f6d0adb613c /src/rw | |
parent | fix postfx fix (diff) | |
download | re3-c58d98a39ea3fa5e1f515fbac96eb58350a6de3e.tar re3-c58d98a39ea3fa5e1f515fbac96eb58350a6de3e.tar.gz re3-c58d98a39ea3fa5e1f515fbac96eb58350a6de3e.tar.bz2 re3-c58d98a39ea3fa5e1f515fbac96eb58350a6de3e.tar.lz re3-c58d98a39ea3fa5e1f515fbac96eb58350a6de3e.tar.xz re3-c58d98a39ea3fa5e1f515fbac96eb58350a6de3e.tar.zst re3-c58d98a39ea3fa5e1f515fbac96eb58350a6de3e.zip |
Diffstat (limited to 'src/rw')
-rw-r--r-- | src/rw/VisibilityPlugins.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rw/VisibilityPlugins.cpp b/src/rw/VisibilityPlugins.cpp index 9ea5b11c..7ff5c243 100644 --- a/src/rw/VisibilityPlugins.cpp +++ b/src/rw/VisibilityPlugins.cpp @@ -303,6 +303,8 @@ CVisibilityPlugins::RenderFadingEntities(void) #ifdef EXTRA_MODEL_FLAGS else if(mi->m_bIsTree) SetAlphaRef(128); + if(!e->IsBuilding() || mi->RenderDoubleSided()) + BACKFACE_CULLING_OFF; #endif if(e->bDistanceFade){ @@ -319,6 +321,7 @@ CVisibilityPlugins::RenderFadingEntities(void) #ifdef EXTRA_MODEL_FLAGS if(mi->m_bIsTree) SetAlphaRef(2); + BACKFACE_CULLING_ON; #endif #ifdef FIX_BUGS if(mi->GetModelType() == MITYPE_SIMPLE && mi->m_noZwrite) |