Radiant:
menus... * view->show->Entity boxes (always show bbox for ents with model) misc... FBO support * preferences->display->entities->Names Display Ratio (2D): hide names, if view_size/bbox_size > value; def = 64
This commit is contained in:
@@ -675,4 +675,9 @@ namespace std
|
||||
}
|
||||
}
|
||||
|
||||
inline bool aabb_fits_view( const AABB& aabb, const Matrix4& viewport, int ratio ){
|
||||
//return ( aabb.extents[0] / viewport[0] ) > 0.25f || ( aabb.extents[1] / viewport[5] ) > 0.25f;
|
||||
return ( viewport[0] + viewport[5] ) / ( aabb.extents[0] + aabb.extents[1] ) < ratio;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user