Template:Shader/doc: Difference between revisions
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 07:32, 19 July 2023
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.
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 | ||
| {{{2}}} | Value. Works only if type is param
|
$detailnotexisting | |
| {{{type}}} | At the moment it has one value - param. Param sets shader parameter icon and unlock 3rd field.
|
key keyvalue |