Difference between revisions of "UnlitTwoTexture"

From Valve Developer Community
Jump to: navigation, search
(clarified purpose)
Line 1: Line 1:
* Two textures are mixed evenly and appear at full brightness.
+
* Two base textures are multiplied together. (Just like the [http://en.wikipedia.org/wiki/Blend_modes#Multiply Multiply] blending mode in typical image editors.)
* Used in development to check [[Displacement]] material blending ?
+
* Unrelated to [[WorldVertexTransition]], which is used for making alpha fading transitions between two base textures on displacements.
:{{note|This does not work on Orange Box for some reason. Maybe this will get fixed eventually but until then you need to edit the .vmt syntax from "UnlitTwoTexture" to "UnlitTwoTexture_DX6".}}
 
 
 
===Basic VMT syntax===
 
"UnlitTwoTexture"
 
 
 
===Orange Box VMT syntax===
 
"UnlitTwoTexture_DX6"
 
  
 
[[Category:Shaders]]
 
[[Category:Shaders]]

Revision as of 10:59, 25 October 2012

  • Two base textures are multiplied together. (Just like the Multiply blending mode in typical image editors.)
  • Unrelated to WorldVertexTransition, which is used for making alpha fading transitions between two base textures on displacements.

E.G.

Stock .vmt hl2/materials/models/props_combine/portalball001_sheet.vmt

"UnlitTwoTexture"
{
	"$basetexture" "models/props_combine/portalball001_sheet"
	"$texture2" "models/props_combine/portalball001b_sheet"
 	"$model" 1
	"$nocull" "1"
	"$additive" "1"
	"Proxies"
	{

		"TextureScroll"
		{
			"texturescrollvar" "$texture2transform"
			"texturescrollrate" -.2
			"texturescrollangle" 60
		}
	}

}