|
|
|
@ -3762,12 +3762,16 @@ static uint32 CentroidMaskFromName( bool bPixelShader, const char *pName )
@@ -3762,12 +3762,16 @@ 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); |
|
|
|
|
} |
|
|
|
|
else if ( V_stristr( pName, "infected_ps" ) ) |
|
|
|
|
{ |
|
|
|
|
return (1<<1); |
|
|
|
@ -3794,7 +3798,7 @@ static int ShadowDepthSamplerMaskFromName( const char *pName )
@@ -3794,7 +3798,7 @@ static int ShadowDepthSamplerMaskFromName( const char *pName )
|
|
|
|
|
} |
|
|
|
|
else if ( V_stristr( pName, "worldtwotextureblend_ps" ) ) |
|
|
|
|
{ |
|
|
|
|
return (1<<7); |
|
|
|
|
return (1<<2); |
|
|
|
|
} |
|
|
|
|
else if ( V_stristr( pName, "teeth_flashlight_ps" ) ) |
|
|
|
|
{ |
|
|
|
@ -3811,27 +3815,27 @@ static int ShadowDepthSamplerMaskFromName( const char *pName )
@@ -3811,27 +3815,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; |
|
|
|
|