misc...
	* new very fast entity names rendering system
	* render entity names in cam within < 512u dist or if selected
This commit is contained in:
Garux
2017-08-02 09:36:47 +03:00
parent bec8719fe1
commit 43d4204697
16 changed files with 556 additions and 45 deletions

View File

@@ -44,6 +44,8 @@
#include "generic.h"
#include "doom3group.h"
#include "namedentity.h"
EGameType g_gameType;
@@ -391,6 +393,7 @@ void Entity_Construct( EGameType gameType ){
Doom3Group_construct();
RenderablePivot::StaticShader::instance() = GlobalShaderCache().capture( "$PIVOT" );
RenderableNamedEntity::StaticShader::instance() = GlobalShaderCache().capture( "$TEXT" );
GlobalShaderCache().attachRenderable( StaticRenderableConnectionLines::instance() );
}
@@ -399,6 +402,7 @@ void Entity_Destroy(){
GlobalShaderCache().detachRenderable( StaticRenderableConnectionLines::instance() );
GlobalShaderCache().release( "$PIVOT" );
GlobalShaderCache().release( "$TEXT" );
Doom3Group_destroy();
MiscModel_destroy();