WorldTwoTextureBlend: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (pointless link)
Line 22: Line 22:


*<code>[[WorldVertexTransition]]</code>
*<code>[[WorldVertexTransition]]</code>
*<code>[[LightmappedTwoTexture]]</code>
*<code>[[LightmappedGeneric]]</code>
*<code>[[LightmappedGeneric]]</code>


[[Category:List of Shaders]]
[[Category:List of Shaders]]

Revision as of 16:59, 25 September 2008

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