Skip to content

Commit

Permalink
Merge pull request #7 from PazerOP/outlines3
Browse files Browse the repository at this point in the history
Performance+feature fixes for glow outlines
  • Loading branch information
jarnar85 authored Mar 24, 2019
2 parents fd8e5ec + d43a67a commit abab7a1
Show file tree
Hide file tree
Showing 7 changed files with 543 additions and 368 deletions.
5 changes: 5 additions & 0 deletions mp/game/mod_hl2mp/materials/debug/debugfbtexture1.vmt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"unlitgeneric"
{
"$basetexture" "_rt_FullFrameFB1"
"%noToolTexture" 1
}
443 changes: 260 additions & 183 deletions mp/src/game/client/glow_outline_effect.cpp

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion mp/src/game/client/glow_outline_effect.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ class CGlowObjectManager

private:

void RenderGlowModels( const CViewSetup *pSetup, int nSplitScreenSlot, CMatRenderContextPtr &pRenderContext );
void ApplyEntityGlowEffects( const CViewSetup *pSetup, int nSplitScreenSlot, CMatRenderContextPtr &pRenderContext, float flBloomScale, int x, int y, int w, int h );

struct GlowObjectDefinition_t
Expand Down Expand Up @@ -150,6 +149,10 @@ class CGlowObjectManager
static const int ENTRY_IN_USE = -2;
};

void DrawGlowVisible(int nSplitScreenSlot, CMatRenderContextPtr& pRenderContext);
void DrawGlowOccluded(int nSplitScreenSlot, CMatRenderContextPtr& pRenderContext);
void DrawGlowAlways(int nSplitScreenSlot, CMatRenderContextPtr& pRenderContext);

CUtlVector< GlowObjectDefinition_t > m_GlowObjectDefinitions;
int m_nFirstFreeSlot;
};
Expand Down
5 changes: 5 additions & 0 deletions sp/game/mod_episodic/materials/debug/debugfbtexture1.vmt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"unlitgeneric"
{
"$basetexture" "_rt_FullFrameFB1"
"%noToolTexture" 1
}
5 changes: 5 additions & 0 deletions sp/game/mod_hl2/materials/debug/debugfbtexture1.vmt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"unlitgeneric"
{
"$basetexture" "_rt_FullFrameFB1"
"%noToolTexture" 1
}
Loading

0 comments on commit abab7a1

Please sign in to comment.