Skip to content

Commit 6d30325

Browse files
svc-reach-platform-supportEvergreen
authored andcommitted
[Port] [2021.3] DOCG-7365 Shader Graph feedback improvements
1 parent 82d4775 commit 6d30325

File tree

2 files changed

+22
-20
lines changed

2 files changed

+22
-20
lines changed
Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
1-
## Description
1+
# Normal Vector node
22

3-
Provides access to the mesh vertex or fragment's **Normal Vector**. The coordinate space of the output value can be selected with the **Space** dropdown parameter.
3+
The Normal Vector node outputs the normal of a vertex or fragment of a mesh.
4+
5+
For more information about normals, refer to [Normal maps](https://docs.unity3d.com/Manual/StandardShaderMaterialParameterNormalMapLanding.html).
46

57
## Ports
68

7-
| Name | Direction | Type | Binding | Description |
9+
| **Name** | **Direction** | **Type** | **Binding** | **Description** |
810
|:------------ |:-------------|:-----|:---|:---|
9-
| Out | Output | Vector 3 | None | Mesh's **Normal Vector**. |
11+
| **Out** | Output | Vector 3 | None | The normal of the vertex or fragment of the mesh, depending on the [shader stage](Shader-Stage.md) of the graph section. |
12+
13+
## Space
1014

11-
## Parameters
15+
The **Space** dropdown determines the coordinate space of the normal vector.
1216

13-
| Name | Type | Options | Description |
14-
|:------------ |:-------------|:-----|:---|
15-
| Space | Dropdown | Object, View, World, Tangent | Selects coordinate space of **Normal Vector** to output. |
17+
| **Option** | **Description** |
18+
|-|-|
19+
| **Object** | Returns the vertex or fragment normal in object space, where up is the up axis of local space. |
20+
| **View** | Returns the vertex or fragment normal in view space, where up is the up direction of the camera. |
21+
| **World** | Returns the vertex or fragment normal in world space, where up is the up direction of the scene. |
22+
| **Tangent** | Returns the vertex or fragment normal in tangent space, where up is away from the surface of the mesh. |
Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,18 @@
1-
# Not Node
1+
# Not node
22

3-
## Description
4-
5-
Returns the opposite of input **In**. If **In** is true the output will be false, otherwise it will be true. This is useful for [Branching](Branch-Node.md).
3+
The Not node outputs the opposite of an input. If the input is true the output is false, otherwise the output is true. This node is useful for [branching](Branch-Node.md).
64

75
## Ports
86

9-
| Name | Direction | Type | Binding | Description |
7+
| **Name** | **Direction** | **Type** | **Binding** | **Description** |
108
|:------------ |:-------------|:-----|:---|:---|
11-
| In | Input | Boolean | None | Input value |
12-
| Out | Output | Boolean | None | Output value |
9+
| **In** | Input | Boolean | None | The input value. |
10+
| **Out** | Output | Boolean | None | The opposite of **In**. |
1311

14-
## Generated Code Example
12+
## Generated code example
1513

1614
The following example code represents one possible outcome of this node.
1715

1816
```
19-
void Unity_NormalUnpack_float(float In, out float Out)
20-
{
21-
Out = !In;
22-
}
17+
Out = !In;
2318
```

0 commit comments

Comments
 (0)