Moderator elections are being held. See Valve Developer Community:Moderator elections for more details.
Users who would like to run for moderator must be autoconfirmed and have at least 100 edits. Users can check their own edit count at Special:Preferences.

Template:Shader Name/doc

From Valve Developer Community
Jump to: navigation, search
Edit-copy.png
This is a documentation subpage for Template:Shader Name.
Don't forget to purge the contents of the base page upon creating or editing this subpage.  

Shader name/param

Parameters and Examples

Parameter Description Examples Preview
{{{1}}} Shader / parameter name
{{Shader_Name|UnlitGeneric}}
{{{2}}} Value.
Works only if type is param
{{Shader_Name|type=param|$detail|texture}}
{{Shader_Name|type=param|$detail|notexisting}}
Shader-ball-settings.png $detailnotexisting
{{{type}}} At the moment it has one value - param. Param sets shader parameter icon and unlock 3rd field.
{{Shader_Name|key|value}}
{{Shader_Name|type=param|key|value}}
Shader-ball.png key
Shader-ball-settings.png keyvalue
{{{alt}}} This displays alternate text for the {{{1}}} parameter. Useful when wanting to make the link to the, for example, Water (shader) shader look more formal.
{{Shader Name|Water (shader)|alt=Water}}