Template:Shader Documentation: Difference between revisions
Appearance
Justin113D (talk | contribs) Added shader behavior overview parameters |
Justin113D (talk | contribs) Renamed vertex color parameter to vertex colors |
||
(3 intermediate revisions by the same user not shown) | |||
Line 12: | Line 12: | ||
== Behavior == | == Behavior == | ||
{{{behavior|}}} | {{{behavior|}}} | ||
{{#if:{{{multi tangent|}}}| | |||
=== Multi-tangent === | |||
{{{multi tangent}}} | |||
|}} | |||
=== Vertex Colors === | |||
{{{vertex colors|Shader does not use vertex colors}}} | |||
= | <div style="clear: both"/> | ||
== Material Inputs == | == Material Inputs == | ||
Line 53: | Line 58: | ||
!Shader Features | !Shader Features | ||
{{#invoke:ShaderDoc|technical_features|{{{features}}}}} | {{#invoke:ShaderDoc|technical_features|{{{features}}}}} | ||
{{!}}}|}}</includeonly> | {{!}}}|}}<nowiki/></includeonly> | ||
<noinclude> | <noinclude> | ||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 96: | Line 99: | ||
"required": false | "required": false | ||
}, | }, | ||
"vertex | "multi tangent": { | ||
"label": "Multi tangent", | |||
"description": "Multi tangent behavior", | |||
"type": "content", | |||
"required": false | |||
}, | |||
"vertex colors": { | |||
"label": "Vertex color", | "label": "Vertex color", | ||
"description": "Vertex color behavior", | "description": "Vertex color behavior", | ||
Line 153: | Line 162: | ||
| behavior = Lorem ipsum. | | behavior = Lorem ipsum. | ||
| vertex | | multi tangent = | ||
Lorem ipsum. | |||
| vertex colors = | |||
* Color is multiplied into the <code>diffuse</code> texture color | * Color is multiplied into the <code>diffuse</code> texture color | ||
* Alpha is multiplied into the <code>diffuse</code> texture alpha | * Alpha is multiplied into the <code>diffuse</code> texture alpha | ||
Line 179: | Line 191: | ||
is_use_gi_prt, | is_use_gi_prt, | ||
is_use_gi_sg, | is_use_gi_sg, | ||
is_use_gi | is_use_gi | ||
}} | }} | ||
== Other == | |||
Outside template | |||
</noinclude> | </noinclude> |
Latest revision as of 17:41, 18 August 2025
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Game | game | Which game this shader belongs to | String | required |
Shader name | shader name | The name of the shader | String | required |
Shader behavior overview | sbo | Parameters for the shader behavior overview | String | optional |
Overview | overview | Overview content | Content | required |
Related shaders | related shaders | List of related shaders | String | optional |
Behavior | behavior | Behavior content | Content | optional |
Multi tangent | multi tangent | Multi tangent behavior | Content | optional |
Vertex color | vertex colors | Vertex color behavior | Content | optional |
Textures | textures | Texture table contents; Fields seperated by commas, column spans specified by underscores and rows seperated by semicolons | Content | optional |
Parameters | parameters | Parameter table contents; Fields seperated by commas, column spans specified by underscores and rows seperated by semicolons | Content | optional |
Technical | technical | Technical information | Content | optional |
Shader features (technical) | features | List of technical features that the shader has been compiled with | Content | optional |
Example
Overview
Shader Behavior Overview
Shader model:
Does not support:
[2] Standard (PBR)
Uses:
Does not support:
A standard PBR shader with no special behavior.
Related shaders
Behavior
Lorem ipsum.
Multi-tangent
Lorem ipsum.
Vertex Colors
- Color is multiplied into the
diffuse
texture color - Alpha is multiplied into the
diffuse
texture alpha
Material Inputs
Textures
Name | Index | UV Index | Kind | Red | Green | Blue | Alpha |
---|---|---|---|---|---|---|---|
diffuse
|
0 | 0 | Albedo | Albedo color | Transparency | ||
test
|
1 | 2 | N/A | N/A | N/A | N/A | N/A |
Parameters
Name | X | Y | Z | W |
---|---|---|---|---|
diffuse
|
Albedo color | N/A | ||
PBRFactor
|
Specular factor | Smoothness factor | Metallic factor | N/A |
Technical
lorem ipsum.
Shader Features |
---|
is_compute_instancing
|
is_use_tex_srt_anim
|
enable_deferred_rendering
|
enable_alpha_threshold
|
is_use_gi_prt
|
is_use_gi_sg
|
is_use_gi
|
Other
Outside template