Shadow (shader): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{Shader|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>ShadowM...")
 
mNo edit summary
Line 1: Line 1:
{{lang}}
{{Shader|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.
{{Shader|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.



Revision as of 06:30, 5 February 2023

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.

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