mirror of
https://github.com/celisej567/source-sdk-2013.git
synced 2026-09-17 20:10:21 +03:00
Mapbase v4.0
- Fixed SDK_Refract and SDK_Water not using new cubemap method - Added missing .inc files for SDK_ShatteredGlass - Updated gitignore - Fixed parallax corrected cubemaps sometimes causing VBSP to crash - Added spawnflag to npc_headcrab which can prevent a headcrab from drowning - Added spawnflag to npc_headcrab which can prevent a headcrab from instantly dying to a melee weapon
This commit is contained in:
@@ -151,6 +151,19 @@ BEGIN_VS_SHADER( SDK_Water_DX90,
|
||||
if ( params[ENVMAP]->IsDefined() )
|
||||
{
|
||||
LoadCubeMap( ENVMAP, TEXTUREFLAGS_SRGB );
|
||||
|
||||
#ifdef MAPBASE
|
||||
if (mat_specular_disable_on_missing.GetBool())
|
||||
{
|
||||
// Revert to defaultcubemap when the envmap texture is missing
|
||||
// (should be equivalent to toolsblack in Mapbase)
|
||||
if (params[ENVMAP]->GetTextureValue()->IsError())
|
||||
{
|
||||
params[ENVMAP]->SetStringValue( "engine/defaultcubemap" );
|
||||
LoadCubeMap( ENVMAP, TEXTUREFLAGS_SRGB );
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
if ( params[NORMALMAP]->IsDefined() )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user