Talk:$color: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
Line 22: Line 22:


The material is loading on the model... but it is simply white. Is there some special step for this?
The material is loading on the model... but it is simply white. Is there some special step for this?
Brain fart... tried without the quotation marks around the $color and it's working.
--[[User:Shawnolson|Shawnolson]] 15:00, 17 September 2011 (PDT)
--[[User:Shawnolson|Shawnolson]] 15:00, 17 September 2011 (PDT)

Revision as of 16:54, 17 September 2011

Does $color apply to the whole material, or just the RGB of the $basetexture ?

Solid Color

The docs state:

This parameter can be used without an albedo to display a solid color without the need of a texture

But when I use a VMT like this:

"VertexLitGeneric"
{

	 "$color" "{165.0 150.0 218.0}"
}

The material is always just white. Is this limited to a certain shader?

The material is loading on the model... but it is simply white. Is there some special step for this?

Brain fart... tried without the quotation marks around the $color and it's working. --Shawnolson 15:00, 17 September 2011 (PDT)