This article's documentation is for anything that uses the Source engine. Click here for more information.

$ambientonly

From Valve Developer Community
Jump to navigation Jump to search
English (en)Translate (Translate)

Stub

This article or section is a stub. You can help by expanding it.


$ambientonly is a material shader parameter available in all Source Source games. It makes the material only receive ambient lighting[confirm]. It is only used in 🖼Imagedebug/debugambientcube.vmt, 🖼Imagedebug/env_cubemap_model_translucent.vmt and 🖼Imagedebug/env_cubemap_model_translucent_fountain.vmt[confirm] (it is disabled in the cubemap materials).

Confirm:Does it work on non-VertexLitGeneric shaders ?

VMT Syntax

$ambientonly <bool>
VertexLitGeneric
{
	$ambientonly 1
}