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

Shadow (shader): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (→‎top: clean up, added underlinked tag)
 
Line 1: Line 1:
{{Underlinked|date=January 2024}}
{{Source topicon}} {{lang}}
{{Source topicon}} {{lang}}
{{this is a|pixel shader|name=Shadow}} It is the shader used by dynamic render-to-texture shadows and requires the <code>Shadow</code> proxy to function. A variant of this shader, '''<code>ShadowModel</code>''', is used to cast shadows on models and requires the <code>ShadowModel</code> proxy instead.
{{this is a|pixel shader|name=Shadow}} It is the shader used by dynamic render-to-texture shadows and requires the <code>Shadow</code> proxy to function. A variant of this shader, '''<code>ShadowModel</code>''', is used to cast shadows on models and requires the <code>ShadowModel</code> proxy instead.

Latest revision as of 01:07, 6 January 2024

Underlinked - Logo.png
This article needs more Wikipedia icon links to other articles to help Wikipedia icon integrate it into the encyclopedia. Please help improve this article by adding links Wikipedia icon that are relevant to the context within the existing text.
January 2024
English (en)Translate (Translate)

Shadow is a Pixel shader available in all Source Source games. 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.

Warning.pngWarning:Using these shaders for other purposes or modifying the VMTs used by the shadow manager may yield unexpected results.

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