entity->firstDrawSurf = numMapDrawSurfs;
+ ClearMetaTriangles();
+ PatchMapDrawSurfs(entity);
+
if(mapEntityNum == 0 && need_tree)
{
faces = MakeStructuralBSPFaceList(entities[0].brushes);
}
}
+ if(meta)
+ {
+ ClassifyEntitySurfaces(entity);
+ MakeEntityDecals(entity);
+ MakeEntityMetaTriangles(entity);
+ SmoothMetaTriangles();
+ MergeMetaTriangles();
+ }
FilterDrawsurfsIntoTree(entity, tree);
+
FilterStructuralBrushesIntoTree(entity, tree);
FilterDetailBrushesIntoTree(entity, tree);
shadersAsBitmap = qtrue;
else if( !strcmp( argv[ i ], "-forcereadbsp" ) )
force_bsp = qtrue;
+ else if( !strcmp( argv[ i ], "-meta" ) )
+ meta = qtrue;
+ else if( !strcmp( argv[ i ], "-patchmeta" ) )
+ {
+ meta = qtrue;
+ patchMeta = qtrue;
+ }
}
LoadShaderInfo();