WorldTwoTextureBlend: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Category rename)
(reformatting and linking)
Line 1: Line 1:
'''<code>WorldTwoTextureBlend</code>''' is a [[lightmap]] shader used to render two [[albedo]]s at the same time with a single material. It uses the <code>$detail</code> command to draw the uppermost albedo (unlike the command's [[$detail|normal usage]]). <code>$detail</code> must have an [[alpha channel]] if <code>$basetexture</code> is to be seen!
'''<code>WorldTwoTextureBlend</code>''' is a [[lightmap]] shader used to render two [[albedo]]s at the same time with a single material. It uses the {{ent|$detail}} command to draw the uppermost albedo (unlike the command's normal usage). <code>$detail</code> must have an [[alpha channel]] if {{ent|$basetexture}} is to be seen!


{{note|Do not confuse this shader with <code>[[WorldVertexTransition]]</code>, which blends between textures but does not display one above the other.}}
{{note|Do not confuse this shader with <code>[[WorldVertexTransition]]</code>, which blends between textures but does not display one above the other.}}


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


'''WorldTwoTextureBlend'''
==Supported effects==
{
*{{ent|$bumpmap}} (will not apply to <code>$detail</code>)
[[$basetexture]] <texture>
*{{ent|$translucent}} and {{ent|$alpha}}
$detail <texture with alpha channel>
This shader does ''not'' support {{ent|$envmap}}.
[[$detailscale]] <[[float]]> ''// Behaves normally''
}


== Supported effects ==
==See Also==
 
*{{ent|WorldVertexTransition}}
*<code>[[$bumpmap]]</code> (will not apply to <code>$detail</code>)
*{{ent|LightmappedGeneric}}
*<code>[[$translucent]]</code> and <code>[[$alpha]]</code>
*{{ent|$detailscale}}
 
This shader does ''not'' support <code>[[$envmap]]</code>.
 
== See also ==
 
*<code>[[WorldVertexTransition]]</code>
*<code>[[LightmappedGeneric]]</code>


[[Category:Shaders]]
[[Category:Shaders]]

Revision as of 05:24, 6 July 2018

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.

Syntax

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

Supported effects

This shader does not support $envmap.

See Also