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

$receiveflashlight: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Replacing with "This is a" template)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
#redirect [[UnlitGeneric]]
{{This is a|shader parameter|name=$receiveflashlight}} It allows the player's flashlight to illuminate the material.
==Compatible Shaders==
* [[UnlitGeneric]]


[[Category:List of Shader Parameters]]
==VMT Syntax and Examples==
 
$receiveflashlight <[[bool]]>
 
[[UnlitGeneric]]
{
[[$basetexture]] glass\window001a
'''$receiveflashlight 1'''
}
 
 
[[Category:Shader parameters|r]]

Latest revision as of 10:09, 10 August 2024

$receiveflashlight is a material shader parameter available in all Source Source games. It allows the player's flashlight to illuminate the material.

Compatible Shaders

VMT Syntax and Examples

$receiveflashlight <bool>
UnlitGeneric
{
	$basetexture glass\window001a
	$receiveflashlight 1
}