WorldTwoTextureBlend

From Valve Developer Community
Jump to navigation Jump to search
Icon-callout-cleanup.png
This article or section needs to be cleaned up to conform to a higher standard of quality because:
Reason 
Bring to standards set by other shader pages, and mention other available shader parameters (what's $albedo?) See SDK source code.

WorldTwoTextureBlend is a lightmap shader used to render two albedos at the same time with a single material. It uses the $detail command to draw the uppermost albedo (unlike the command's normal usage). $detail must have an alpha channel if $basetexture is to be seen!

Note.pngNote: Do not confuse this shader with WorldVertexTransition, which blends between textures but does not display one above the other.
Tip.pngTip: Effectively equivalent to $detailblendmode 2 (working around the blend mode's incompatibility with LightmappedGeneric and WorldVertexTransition), but with fewer available parameters.
Icon-Bug.pngBug:Doesn't render correctly when using flashlight and shining on any textures using this shader while radial fog is also enabled. Issues #7045  (tested in: Counter-Strike: Source (de_aztec))

Syntax

WorldTwoTextureBlend
{
    $basetexture    <texture>
    $detail         <texture with alpha channel>
    $detailscale    <float>// Behaves normally
}

Supported effects

This shader does not support $envmap.

See also