Skip to content
Open
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: 4 additions & 1 deletion src/game/client/tf/c_tf_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3314,6 +3314,9 @@ struct TextureVarSetter
ITexture* m_pTexture;
};

// Convar to force full resolution paintkit textures in situations they normally wouldn't (world model, other players' skins)
ConVar tf_paintkit_force_fullres("tf_paintkit_force_fullres", "0", FCVAR_NONE, "Display full resolution paintkit textures on weapons.");

//-----------------------------------------------------------------------------
// Purpose: Used for weapon skins.
//-----------------------------------------------------------------------------
Expand Down Expand Up @@ -3422,7 +3425,7 @@ class CWeaponSkinProxy : public IMaterialProxy

// if we're not using high res, check if we should down res
// We may force low res for some composites.
if ( pItem->ShouldWeaponSkinUseLowRes() || ( !pItem->ShouldWeaponSkinUseHighRes() && !cbPlayerIsLocalPlayer ) )
if ( ( !tf_paintkit_force_fullres.GetBool() ) && ( pItem->ShouldWeaponSkinUseLowRes() || ( !pItem->ShouldWeaponSkinUseHighRes() && !cbPlayerIsLocalPlayer ) ) )
{
const int cDropMips = 2;
desiredW = Max( 1, desiredW >> cDropMips );
Expand Down