Shadow (shader): Difference between revisions
Jump to navigation
Jump to search

Warning:Using these shaders for other purposes or modifying the VMTs used by the shadow manager may yield unexpected results.
Thunder4ik (talk | contribs) m (→top: clean up, replaced: {{ModernWarning| → {{warning|) |
No edit summary |
||
| Line 1: | Line 1: | ||
{{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. | ||
The shadow manager draws from <code>decals/rendershadow.vmt</code> and <code>decals/rendermodelshadow.vmt</code> for its shadows. | The shadow manager draws from <code>decals/rendershadow.vmt</code> and <code>decals/rendermodelshadow.vmt</code> for its shadows. | ||
Revision as of 17:35, 5 January 2024
Shadow is a Pixel shader available in all
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.
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
- Dynamic shadows, which use these shaders.
- shadow_control, which is used to change the color of shadows loaded by the shadow manager.