UnlitTwoTexture: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(clarified purpose)
No edit summary
Line 1: Line 1:
* Two base textures are multiplied together. (Just like the [http://en.wikipedia.org/wiki/Blend_modes#Multiply Multiply] blending mode in typical image editors.)
* Two base textures are multiplied together and can be [[Material proxies|transformed]] independently. (Just like the [http://en.wikipedia.org/wiki/Blend_modes#Multiply Multiply] blending mode in typical image editors.)
* Unrelated to [[WorldVertexTransition]], which is used for making alpha fading transitions between two base textures on displacements.
* Unrelated to [[WorldVertexTransition]], which is used for making alpha fading transitions between two base textures on displacements.


Line 29: Line 29:
}
}
</syntaxhighlight>
</syntaxhighlight>
== See also ==
*<code>[[LightmappedTwoTexture]]</code>

Revision as of 12:12, 25 October 2012

  • Two base textures are multiplied together and can be transformed independently. (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
		}
	}

}

See also