Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance+feature fixes for glow outlines #7

Merged
merged 1 commit into from
Mar 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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