Template:Shader Documentation: Difference between revisions
Appearance
Justin113D (talk | contribs) Table contents added |
Justin113D (talk | contribs) Added shader behavior overview parameters |
||
Line 2: | Line 2: | ||
[[{{{game}}} Shaders|Return to shaders list]] | [[{{{game}}} Shaders|Return to shaders list]] | ||
== Overview == | == Overview == | ||
{{ | {{#invoke:ShaderDoc|create_sbo|game={{{game}}}|parameters={{{sbo|}}}}} | ||
| | |||
}} | |||
{{{overview}}} | {{{overview}}} | ||
{{#if:{{{related shaders|}}}| | {{#if:{{{related shaders|}}}| | ||
Line 54: | Line 52: | ||
{{!}}- | {{!}}- | ||
!Shader Features | !Shader Features | ||
{{#invoke:ShaderDoc|technical_features | {{#invoke:ShaderDoc|technical_features|{{{features}}}}} | ||
| | |||
}} | |||
{{!}}}|}}</includeonly> | {{!}}}|}}</includeonly> | ||
<noinclude> | <noinclude> | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | |||
"game": { | "game": { | ||
"label": "Game", | |||
"description": "Which game this shader belongs to", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"shader name": { | |||
"label": "Shader name", | |||
"description": "The name of the shader", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"sbo": { | |||
"label": "Shader behavior overview", | |||
"description": "Parameters for the shader behavior overview", | |||
"type": "string", | |||
"required": false | |||
}, | |||
"overview": { | |||
"label": "Overview", | |||
"description": "Overview content", | |||
"type": "content", | |||
"required": true | |||
}, | |||
"related shaders": { | |||
"label": "Related shaders", | |||
"description": "List of related shaders", | |||
"type": "string", | |||
"required": false | |||
}, | |||
"behavior": { | "behavior": { | ||
"label": "Behavior", | |||
"description": "Behavior content", | |||
"type": "content", | |||
"required": false | |||
}, | |||
"vertex color": { | "vertex color": { | ||
"label": "Vertex color", | |||
"description": "Vertex color behavior", | |||
"type": "content", | |||
"required": false | |||
}, | |||
"textures": { | "textures": { | ||
"label": "Textures", | |||
"description": "Texture table contents; Fields seperated by commas, column spans specified by underscores and rows seperated by semicolons", | |||
"type": "content", | |||
"required": false | |||
}, | |||
"parameters": { | "parameters": { | ||
"label": "Parameters", | |||
"description": "Parameter table contents; Fields seperated by commas, column spans specified by underscores and rows seperated by semicolons", | |||
"type": "content", | |||
"required": false | |||
}, | |||
"technical": { | "technical": { | ||
"label": "Technical", | |||
"description": "Technical information", | |||
"type": "content", | |||
"required": false | |||
}, | |||
"features": { | "features": { | ||
"label": "Shader features (technical)", | |||
"description": "List of technical features that the shader has been compiled with", | |||
"type": "content", | |||
"required": false | |||
} | |||
} | |||
} | } | ||
</templatedata> | </templatedata> | ||
== Example == | == Example == | ||
Line 134: | Line 136: | ||
| shader name = Common_dpn | | shader name = Common_dpn | ||
| sbo = model=2, | |||
no_opaque_layer, | |||
no_punch_through_layer, | |||
noise_dithering | |||
| overview = A standard PBR shader with no special behavior. | | overview = A standard PBR shader with no special behavior. |
Revision as of 21:20, 17 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 |
Vertex color | vertex color | 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.
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
|