Template:Shader Documentation: Difference between revisions
| Justin113D (talk | contribs)  Added gallery | Justin113D (talk | contribs) m Fixed typo | ||
| (One intermediate revision by the same user not shown) | |||
| Line 4: | Line 4: | ||
| {{#invoke:ShaderDoc|create_sbo|game={{{game}}}|parameters={{{sbo|}}}}} | {{#invoke:ShaderDoc|create_sbo|game={{{game}}}|parameters={{{sbo|}}}}} | ||
| {{{overview}}} | {{{overview}}} | ||
| {{#if:{{{overview bugs|}}}|{{notice | |||
| |type=warn | |||
| |content={{{overview bugs}}} | |||
| It is advised to not used this shader.}}}} | |||
| {{#if:{{{related shaders|}}}| | {{#if:{{{related shaders|}}}| | ||
| === Related shaders === | === Related shaders === | ||
| Line 18: | Line 22: | ||
| === Vertex Colors === | === Vertex Colors === | ||
| {{{vertex colors|Shader does not use vertex colors}}} | {{{vertex colors|Shader does not use vertex colors}}} | ||
| {{#if:{{{bugs|}}}| | |||
| === Bugs === | |||
| {{notice | |||
| |type=warn | |||
| |content={{{bugs}}}}}}} | |||
| <div style="clear: both"/> | <div style="clear: both"/> | ||
| Line 88: | Line 96: | ||
|              "type": "content", |              "type": "content", | ||
|              "required": true |              "required": true | ||
|         }, | |||
|         "overview bug": { | |||
|             "label": "Overview bug", | |||
|             "description": "Overview bug content", | |||
|             "type": "content", | |||
|             "required": false | |||
|          }, |          }, | ||
|          "related shaders": { |          "related shaders": { | ||
| Line 110: | Line 124: | ||
|              "label": "Vertex color", |              "label": "Vertex color", | ||
|              "description": "Vertex color behavior", |              "description": "Vertex color behavior", | ||
|             "type": "content", | |||
|             "required": false | |||
|         }, | |||
|         "bugs": { | |||
|             "label": "Bugs", | |||
|             "description": "Bugs in behavior", | |||
|              "type": "content", |              "type": "content", | ||
|              "required": false |              "required": false | ||
| Line 160: | Line 180: | ||
| | overview = A standard PBR shader with no special behavior. | | overview = A standard PBR shader with no special behavior. | ||
| | overview bugs =  | |||
| BUGS! | |||
| | related shaders =   | | related shaders =   | ||
| Line 176: | Line 200: | ||
| * 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 | ||
| | bugs = | |||
| BUGS! | |||
| | textures = | | textures = | ||
Latest revision as of 12:11, 25 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 | 
| Overview bug | overview bug | Overview bug content | Content | optional | 
| 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 | 
| Bugs | bugs | Bugs in 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 | 
| Gallery contents | gallery | Picture gallery contents | String | 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
   [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 diffusetexture color
- Alpha is multiplied into the diffusetexture alpha
Bugs
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 | 
Gallery
- 
			
			HowDetail_dpnnis used for cliffs in Rail Canyon to blend in detail normals when the camera is closer to the surface
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
