Template:Shader/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Shader Name doc init)
 
m (Updated due to the expansion of functionality)
Line 16: Line 16:
| align=center | {{Param|2}}
| align=center | {{Param|2}}
| Value.<br>Works only if {{code|preset=1|type}} is {{code|preset=1|param}}
| Value.<br>Works only if {{code|preset=1|type}} is {{code|preset=1|param}}
| {{CodeBlock|margin=5px| <nowiki>{{Shader_Name|type=param|$detail|texture}}</nowiki> }}
| {{CodeBlock|margin=5px| <nowiki>{{Shader_Name|type=param|$detail|texture}}</nowiki> }} {{CodeBlock|margin=5px| <nowiki>{{Shader_Name|type=param|$detail|notexisting}}</nowiki> }}
| {{Capsule|margin=5px| {{Shader_Name|type=param|$detail|texture}} }}
| {{Capsule|margin=5px| {{Shader_Name|type=param|$detail|texture}} }} {{Capsule|margin=5px| {{Shader_Name|type=param|$detail|notexisting}} }}
|-
|-
| align=center | {{Param|type}}
| align=center | {{Param|type}}

Revision as of 08:32, 19 July 2023

Edit-copy.png
This is a documentation subpage for Template:Shader.
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