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

opengl 3.3 renderer cascaded shadow maps, minor gfx renderer optimizations

This commit is contained in:
tmj-fstate
2019-12-05 15:42:54 +01:00
parent 194400e1af
commit 63619d13a6
21 changed files with 416 additions and 443 deletions

View File

@@ -2010,6 +2010,12 @@ void TModel3d::Init()
std::size_t dataoffset = 0;
Root->create_geometry( dataoffset, m_geometrybank );
}
// determine final bounding radius from the root-level siblings
auto const *root { Root };
while( ( root = root->Next ) != nullptr ) {
Root->m_boundingradius = std::max( Root->m_boundingradius, root->m_boundingradius );
}
if( ( Global.iConvertModels > 0 )
&& ( false == asBinary.empty() ) ) {
SaveToBinFile( asBinary );