UnlitGeneric: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
'''<code>UnlitGeneric</code>''' draws an [[albedo]] without any lighting (e.g. a menu background or pitch blackness). It accepts only the most rudimentary of VMT commands.
'''<code>UnlitGeneric</code>''' draws an [[albedo]] without standard lighting passes. It is used for things like UI images, pure white, and pitch blackness, but also in situations when software lighting is used (like on [[detail prop]]s). It accepts only the most rudimentary of VMT commands.


{{note|If this shader is being used on a [[model]], you must specify <code>[[$model]] 1</code>.}}
{{note|If this shader is being used on a [[model]], you must specify <code>[[$model]] 1</code>.}}
Line 6: Line 6:


; <code>$receiveflashlight 1</code>
; <code>$receiveflashlight 1</code>
: Allow the player's flashlight to illuminate the material. Used on [[detail prop]]s.
: Allow the player's flashlight to illuminate the material.


== Supported effects ==
== Supported effects ==

Revision as of 10:50, 15 February 2010

UnlitGeneric draws an albedo without standard lighting passes. It is used for things like UI images, pure white, and pitch blackness, but also in situations when software lighting is used (like on detail props). It accepts only the most rudimentary of VMT commands.

Note.pngNote:If this shader is being used on a model, you must specify $model 1.

Parameters

$receiveflashlight 1
Allow the player's flashlight to illuminate the material.

Supported effects