16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 02:29:19 +02:00

EU7 scenery format and models streaming

This commit is contained in:
maj00r
2026-06-13 15:43:44 +02:00
parent f07c8fdcd2
commit 876a4c7c18
171 changed files with 27924 additions and 281 deletions

View File

@@ -359,6 +359,21 @@ basic_cell::insert( TAnimModel *Instance ) {
m_active = true;
if( Instance->m_eu7_pack && Instance->m_instanceable ) {
m_instancesopaque.emplace_back( Instance );
if( Instance->Model() != nullptr ) {
instance_bucket_key key;
key.pModel = Instance->Model();
auto const *mat = Instance->Material();
if( mat != nullptr ) {
for( int i = 0; i < 5; ++i ) { key.skins[ i ] = mat->replacable_skins[ i ]; }
}
m_instancebuckets_opaque[ key ].emplace_back( Instance );
}
enclose_area( Instance );
return;
}
auto const flags = Instance->Flags();
auto alpha =
( Instance->Material() != nullptr ?