This article's documentation is for anything that uses the Source engine. Click here for more information.

Shadow (shader)

From Valve Developer Community
Revision as of 06:33, 5 February 2023 by REDESAILE (talk | contribs)
Jump to navigation Jump to search
English (en)Translate (Translate)

Shader-ball.png Shadow It is the shader used by dynamic render-to-texture shadows and requires the Shadow proxy to function. A variant of this shader, ShadowModel, is used to cast shadows on models and requires the ShadowModel proxy instead.

The shadow manager draws from decals/rendershadow.vmt and decals/rendermodelshadow.vmt for its shadows.

Template:ModernWarning

Example

"Shadow"
{
//	"$basetexture" "Decals/simpleshadow"
	"$no_fullbright" 1
	"$decal" 1
	"%noToolTexture" 1

	"Proxies"
	{		
		"Shadow"
		{
		}
	}
}
"ShadowModel"
{
	"$decal" 1
	"$model" 1
	"$no_fullbright" 1
	"%noToolTexture" 1
	"Proxies"
	{		
		"ShadowModel"
		{
		}
	}
}

See also