mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-04 18:09:53 +03:00
togl/togles: fix flashlight problems
This commit is contained in:
@@ -3763,15 +3763,15 @@ static uint32 CentroidMaskFromName( bool bPixelShader, const char *pName )
|
||||
static int ShadowDepthSamplerMaskFromName( const char *pName )
|
||||
{
|
||||
if ( !pName )
|
||||
return 0;
|
||||
|
||||
return 0;
|
||||
|
||||
if ( V_stristr( pName, "water_ps" ) )
|
||||
{
|
||||
return (1<<7);
|
||||
}
|
||||
else if ( V_stristr( pName, "skin_ps" ) )
|
||||
{
|
||||
return (1<<4) | (1<<6);
|
||||
return (1<<4);
|
||||
}
|
||||
else if ( V_stristr( pName, "infected_ps" ) )
|
||||
{
|
||||
@@ -3816,27 +3816,27 @@ static int ShadowDepthSamplerMaskFromName( const char *pName )
|
||||
else if ( V_stristr( pName, "deferred_global_light_ps" ) )
|
||||
{
|
||||
return (1<<14);
|
||||
}
|
||||
}
|
||||
else if ( V_stristr( pName, "global_lit_simple_ps" ) )
|
||||
{
|
||||
return (1<<14);
|
||||
}
|
||||
}
|
||||
else if ( V_stristr( pName, "lightshafts_ps" ) )
|
||||
{
|
||||
return (1<<1);
|
||||
}
|
||||
}
|
||||
else if ( V_stristr( pName, "multiblend_combined_ps" ) )
|
||||
{
|
||||
return (1<<14);
|
||||
}
|
||||
}
|
||||
else if ( V_stristr( pName, "multiblend_ps" ) )
|
||||
{
|
||||
return (1<<14);
|
||||
}
|
||||
}
|
||||
else if ( V_stristr( pName, "customhero_ps" ) )
|
||||
{
|
||||
return (1<<14);
|
||||
}
|
||||
}
|
||||
|
||||
// This shader doesn't have a shadow depth map sampler
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user