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:
Garux
2017-08-02 09:41:22 +03:00
parent 8ca384165b
commit 7bb36b774c
15 changed files with 236 additions and 9 deletions

View File

@@ -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