Skip to content

Commit 4d7d1c8

Browse files
ocarrereEvergreen
authored andcommitted
[Port] [6000.0] docg-7795: Reference page for HDRP Six Way Shader Graph
1 parent 1dca429 commit 4d7d1c8

File tree

3 files changed

+108
-1
lines changed

3 files changed

+108
-1
lines changed

Packages/com.unity.render-pipelines.high-definition/Documentation~/TableOfContents.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@
437437
* [StackLit Master Stack reference](stacklit-master-stack-reference.md)
438438
* [Canvas Master Stack reference](canvas-master-stack-reference.md)
439439
* [Fog Volume Master Stack reference](fog-volume-master-stack-reference.md)
440+
* [Six Way Master Stack reference](six-way-master-stack-reference.md)
440441
* [Water Master Stack reference](master-stack-water.md)
441442
* [Environmental effects reference](reference-environmental-effects.md)
442443
* [Sky reference](reference-sky.md)

Packages/com.unity.render-pipelines.high-definition/Documentation~/shader-graph-materials-reference.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ Learn about the properties and behavior of HDRP Shader Graph contexts and master
1616
|[StackLit Master Stack reference](stacklit-master-stack-reference.md)|Properties and options in the StackLit master stack.|
1717
|[Canvas Master Stack reference](canvas-master-stack-reference.md)|Properties and options in the Canvas master stack.|
1818
|[Fog Volume Master Stack reference](fog-volume-master-stack-reference.md)|Properties and options in the Fog Volume master stack.|
19+
|[Six Way Master Stack reference](six-way-master-stack-reference.md)|Properties and options in the Six Way master stack.|
1920

2021
## Additional resources
2122

22-
- [Shader graph](https://docs.unity3d.com/Packages/com.unity.shadergraph@latest?subfolder=/manual/index.html)
23+
- [Shader graph](https://docs.unity3d.com/Packages/com.unity.shadergraph@latest?subfolder=/manual/index.html)
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
# Six Way Master Stack reference
2+
3+
The Six Way master stack refers to the settings and contexts that the Six Way shader graph includes by default.
4+
5+
# Contexts
6+
7+
A Shader Graph contains the following contexts:
8+
9+
- [Vertex context](#vertex-context)
10+
- [Fragment context](#fragment-context)
11+
12+
The Six Way Master Stack has its own [Graph Settings](#graph-settings) that determine which blocks you can use in the Shader Graph contexts. For more information about the relationship between Graph Settings and blocks, refer to [Contexts and blocks](understand-shader-graph-in-hdrp.md).
13+
14+
This section contains information on the blocks that this master stack material type uses by default, and which blocks you can use to affect the Graph Settings.
15+
16+
<a name="vertex-context"></a>
17+
18+
## Vertex context
19+
20+
The [Vertex context](vertex-context-reference.md) represents the vertex stage of a shader.
21+
22+
### Default
23+
24+
When you create a new Six Way Master Stack, the Vertex Context contains the following blocks by default:
25+
26+
| **Property** | **Description** | **Setting Dependency** | **Default Value** |
27+
|---|---|---|---|
28+
| **Position** | Defines the per-vertex position in object space. | None | `CoordinateSpace.Object` |
29+
| **Normal** | Defines the per-vertex normal vector in object space; expects a unit-length direction (magnitude 1). | None | `CoordinateSpace.Object` |
30+
| **Tangent** | Defines the per-vertex tangent vector in object space; expects a unit-length direction aligned with mesh UVs. | None | `CoordinateSpace.Object` |
31+
32+
<a name="fragment-context"></a>
33+
34+
## Fragment context
35+
36+
The [Fragment context](fragment-context-reference.md) represents the fragment stage of a shader.
37+
38+
### Default
39+
40+
When you create a new Six Way Master Stack, the Fragment Context contains the following blocks by default:
41+
42+
| **Property** | **Description** | **Setting Dependency** | **Default Value** |
43+
|---|---|---|---|
44+
| **Base Color** | Defines the base color of the material. | None | `Color.grey` |
45+
| **Emission** | Defines the color of light emitted from the material’s surface. Emissive materials appear as light sources in the scene. | None | `Color.black` |
46+
| **Ambient Occlusion** | Defines the material’s ambient occlusion (range 0–1). A value of 0 fully occludes a fragment (appears black) and 1 applies no occlusion (ambient color unchanged). | None | 1.0 |
47+
| **Alpha** | Sets the material’s alpha (range 0–1). Determines transparency. | None | 1.0 |
48+
| **Right Top Back** | Sets the color applied to surfaces facing the positive x-axis (right), positive y-axis (top), and negative z-axis (back). | None | `Color.grey` |
49+
| **Left Bottom Front** | Sets the color applied to surfaces facing the negative x-axis (left), negative y-axis (bottom), and positive z-axis (front). | None | `Color.grey` |
50+
| **Color Absorption Strength** | Controls how strongly the material absorbs light color as it passes through the object. Higher values increase the influence of the opposite face’s colors on visible shading. Default 0.5. Available only when **Use Color Absorption** is enabled in the graph settings. | **Use Color Absorption** enabled | 0.5 |
51+
52+
<a name="graph-settings"></a>
53+
54+
## Graph settings
55+
56+
The Graph Inspector contains the following properties.
57+
58+
### Surface options
59+
60+
| **Property** | **Option** | **Description** |
61+
|---|---|---|
62+
| **Surface Type** | N/A | Specifies whether the material supports transparency. Selecting **Transparent** increases rendering cost and exposes additional properties. The options are: <ul><li>**Opaque**</li><li>**Transparent:** Simulates a translucent material that light can penetrate (for example, clear plastic or glass).</li></ul> |
63+
| **Surface Type** | **Rendering Pass** | Specifies the rendering pass HDRP uses for this material. Appears only when **Surface Type** is **Transparent**. The options are: <ul><li>**Default:** Draws the GameObject in the default opaque or transparent pass, based on the Surface Type.</li><li>**Before Refraction:** Draws the GameObject before the refraction pass so it contributes to refraction.</li><li>**After post-process:** Draws after post-processing (Unlit Materials only).</li></ul> |
64+
| **Surface Type** | **Blending Mode** | Specifies how HDRP blends the material’s pixels with the background. Appears only when **Surface Type** is **Transparent**. The options are: <ul><li>**Alpha:** Uses the material alpha to control transparency (0 = fully transparent, 1 = visually opaque but rendered in the Transparent pass).</li><li>**Additive:** Adds the material RGB to the background; alpha scales the added intensity (0–1).</li><li>**Premultiply:** Assumes RGB is pre-multiplied by alpha for better filtering and compositing.</li></ul> |
65+
| **Surface Type** | **Receive fog** | Indicates whether fog affects the transparent surface. Appears only when **Surface Type** is **Transparent**. |
66+
| **Surface Type** | **Depth Test** | Specifies the depth-test comparison function HDRP uses. Appears only when **Surface Type** is **Transparent**. |
67+
| **Surface Type** | **Depth Write** | Indicates whether HDRP writes depth for GameObjects using this material. Appears only when **Surface Type** is **Transparent**. |
68+
| **Surface Type** | **Sorting Priority** | Adjusts the rendering order of overlapping transparent surfaces. Appears only when **Surface Type** is **Transparent**. |
69+
| **Surface Type** | **Back Then Front Rendering** | Enables two-pass rendering that draws back faces first and front faces second. Appears only when **Surface Type** is **Transparent**. |
70+
| **Surface Type** | **Transparent Depth Prepass** | Adds transparent surface polygons to the depth buffer before the lighting pass to improve sorting. Not supported when the rendering pass is Low Resolution. Appears only when **Surface Type** is **Transparent**. |
71+
| **Surface Type** | **Transparent Depth Postpass** | Adds transparent surface polygons to the depth buffer after the lighting pass so they affect post-processing (for example, motion blur or depth of field). Not supported when the rendering pass is Low Resolution. Appears only when **Surface Type** is **Transparent**. |
72+
| **Surface Type** | **Transparent Writes Motion Vectors** | Enables writing motion vectors for transparent GameObjects to support effects like motion blur. Not supported when the rendering pass is Low Resolution. Appears only when **Surface Type** is **Transparent**. |
73+
| **Surface Type** | **Cull Mode** | Specifies which faces to cull. The options are: <ul><li>**Back:** Culls back faces.</li><li>**Front:** Culls front faces.</li></ul> |
74+
| **Alpha Clipping** | N/A | Enables cutout rendering by discarding pixels below a threshold to create sharp transparency edges. |
75+
| **Double Sided** | N/A | Specifies how HDRP renders polygon faces. The options are: <ul><li>**Disabled:** Renders front faces only.</li><li>**Enabled:** Renders both faces with identical normals.</li><li>**Flipped Normals:** Renders both faces and flips back-face normals by 180°, making the material appear the same on both sides.</li><li>**Mirrored Normals:** Renders both faces and mirrors back-face normals, effectively inverting the material on the back face (useful for leaves).</li></ul> |
76+
| **Depth Offset** | N/A | Modifies the depth buffer according to displacement so depth-based effects (for example, Contact Shadows) capture pixel-level displacement. |
77+
| **Add Custom Velocity** | N/A | Adds a provided object-space velocity to motion-vector calculation to support procedural geometry while still accounting for other deformations (for example, skinning or vertex animation). |
78+
| **Exclude from Temporal Upscaling and Anti Aliasing** | N/A | Excludes the surface from temporal upscalers and temporal anti-aliasing to reduce blurring on content such as animated textures. Works only for **Transparent** surfaces. |
79+
| **Tessellation** | N/A | Enables mesh subdivision using tessellation according to the material’s tessellation options. |
80+
| **Tessellation** | **Max Displacement** | Specifies the maximum world-space displacement in meters to aid culling. Sets this to the maximum displacement magnitude from the displacement map. |
81+
| **Tessellation** | **Triangle Culling Epsilon** | Specifies the culling epsilon for tessellated triangles. Sets to -1.0 to disable back-face culling; increases the value for more aggressive culling and better performance. |
82+
| **Tessellation** | **Start Fade Distance** | Sets the camera distance (meters) at which tessellation begins to fade out. Fades out until the value set for the **End Fade Distance**, where tessellation stops. |
83+
| **Tessellation** | **End Fade Distance** | Sets the maximum camera distance (meters) at which HDRP tessellates triangles; beyond this distance, no tessellation occurs. |
84+
| **Tessellation** | **Triangle Size** | Sets the screen-space triangle size (pixels) that triggers subdivision (for example, 100 subdivides triangles that cover 100 pixels). Lower values tessellate smaller triangles but increase cost. |
85+
| **Tessellation** | **Tessellation Mode** | Specifies whether HDRP applies Phong tessellation. Materials can use a displacement map for tessellation. The options are: <ul><li>**None:** Uses displacement only (no tessellation if no displacement map is assigned).</li><li>**Phong:** Applies vertex interpolation to smooth geometry and displacement.</li></ul> |
86+
| **Receive Shadows** | N/A | Determines whether the material receives and displays shadows cast by other objects; may affect batching performance. |
87+
| **Use Color Absorption** | N/A | Enables simulation of light passing through the object and picking up color from the opposite side. When enabled, Unity adds the **Color Absorption Strength** block to the Fragment context. |
88+
### Advanced options
89+
90+
The Graph Inspector contains the following advanced options.
91+
92+
| **Property** | **Description** |
93+
|---|---|
94+
| **Support Lod Crossfade** | Indicates whether HDRP processes dithering when a mesh moves moves from one LOD level to another. |
95+
| **Add Precomputed Velocity** | Indicates whether to use precomputed velocity information stored in an Alembic file. |
96+
97+
### Other options
98+
99+
The Graph Inspector also contains the following options.
100+
101+
| **Property** | **Description** |
102+
|---|---|
103+
| **Custom Editor GUI** | Renders a custom editor GUI in the **Inspector** window of the material. Enter the name of the GUI class in the field. For more information, refer to [Control material properties in the Inspector window](../writing-shader-display-types). |
104+
| **Support VFX Graph** | Indicates whether this Shader Graph supports the Visual Effect Graph. If you enable this property, output contexts can use this Shader Graph to render particles. The internal setup that Shader Graph does to support visual effects happens when Unity imports the Shader Graph. This means that if you enable this property, but don't use the Shader Graph in a visual effect, there is no impact on performance. It only affects the Shader Graph import time. |
105+
| **Support High Quality Line Rendering** | Indicates whether this Shader Graph supports the High Quality Line Rendering feature. Enabling this property will only have an effect on renderers with line topology. |

0 commit comments

Comments
 (0)