diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-10 17:26:13 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-10 17:26:13 +0200 |
commit | 653d808417d3c3959ad34ac93b6775770f10271b (patch) | |
tree | d569ca2dd0f5ecd7b487fb3794736d969f14c0fc /src/rw/VisibilityPlugins.cpp | |
parent | some updates for script (diff) | |
parent | CVehicleModelInfo (diff) | |
download | re3-653d808417d3c3959ad34ac93b6775770f10271b.tar re3-653d808417d3c3959ad34ac93b6775770f10271b.tar.gz re3-653d808417d3c3959ad34ac93b6775770f10271b.tar.bz2 re3-653d808417d3c3959ad34ac93b6775770f10271b.tar.lz re3-653d808417d3c3959ad34ac93b6775770f10271b.tar.xz re3-653d808417d3c3959ad34ac93b6775770f10271b.tar.zst re3-653d808417d3c3959ad34ac93b6775770f10271b.zip |
Diffstat (limited to 'src/rw/VisibilityPlugins.cpp')
-rw-r--r-- | src/rw/VisibilityPlugins.cpp | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/rw/VisibilityPlugins.cpp b/src/rw/VisibilityPlugins.cpp index 93a478e5..c24677e0 100644 --- a/src/rw/VisibilityPlugins.cpp +++ b/src/rw/VisibilityPlugins.cpp @@ -147,7 +147,7 @@ CVisibilityPlugins::RenderFadingEntities(void) if(e->m_rwObject == nil) continue; mi = (CSimpleModelInfo *)CModelInfo::GetModelInfo(e->GetModelIndex()); - if(mi->m_noZwrite) + if(mi->GetModelType() == MITYPE_SIMPLE && mi->m_noZwrite) RwRenderStateSet(rwRENDERSTATEZWRITEENABLE, FALSE); if(e->bDistanceFade){ @@ -159,7 +159,7 @@ CVisibilityPlugins::RenderFadingEntities(void) }else CRenderer::RenderOneNonRoad(e); - if(mi->m_noZwrite) + if(mi->GetModelType() == MITYPE_SIMPLE && mi->m_noZwrite) RwRenderStateSet(rwRENDERSTATEZWRITEENABLE, (void*)TRUE); } } @@ -516,6 +516,20 @@ CVisibilityPlugins::RenderTrainHiDetailAlphaCB(RpAtomic *atomic) } RpAtomic* +CVisibilityPlugins::RenderVehicleRotorAlphaCB(RpAtomic *atomic) +{ + // TODO(MIAMI): + return AtomicDefaultRenderCallBack(atomic); +} + +RpAtomic* +CVisibilityPlugins::RenderVehicleTailRotorAlphaCB(RpAtomic *atomic) +{ + // TODO(MIAMI): + return AtomicDefaultRenderCallBack(atomic); +} + +RpAtomic* CVisibilityPlugins::RenderPlayerCB(RpAtomic *atomic) { if(CWorld::Players[0].m_pSkinTexture) |