Shadow
Jump to navigation
Jump to search
This article needs more links to other pages (since January 2024). You can help improve navigation by adding links to related documentation, such as entities or tools.
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.