Skip to content

Commit

Permalink
[Port] [2021.3] Fix for DOCATT-2055, Branch Node output type
Browse files Browse the repository at this point in the history
*[Corrects the output type of the Branch node as per DOCATT-2055.]*
  • Loading branch information
svc-reach-platform-support authored and Evergreen committed Apr 17, 2024
1 parent dfbcb6b commit 62ea26a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Packages/com.unity.shadergraph/Documentation~/Branch-Node.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

## Description

Provides a dynamic branch to the shader. If input **Predicate** is true the return output will be equal to input **True**, otherwise it will be equal to input **False**. This is determined per vertex or per pixel depending on shader stage. Both sides of the branch will be evaluated in the shader, and the branch not used will be discarded.
Provides a dynamic branch to the shader. If input **Predicate** is true, this node returns input **True**, otherwise it returns input **False**. The **Branch Node** evaluates the **Predicate** per vertex or per pixel depending on shader stage. Both sides of the branch are evaluated in the shader, and the branch not used is discarded.

## Ports

| Name | Direction | Type | Binding | Description |
|:------------ |:-------------|:-----|:---|:---|
| Predicate | Input | Boolean | None | Determines which input to returned |
| True | Input | Dynamic Vector | None | Returned if **Predicate** is true |
| False | Input | Dynamic Vector | None | Returned if **Predicate** is false |
| Out | Output | Boolean | None | Output value |
| Name | Direction | Type | Binding | Description |
|:----------|:----------|:---------------|:--------|:------------|
| Predicate | Input | Boolean | None | Determines which input to return. |
| True | Input | Dynamic Vector | None | Returned if **Predicate** is true. |
| False | Input | Dynamic Vector | None | Returned if **Predicate** is false. |
| Out | Output | Dynamic Vector | None | Output value |

## Generated Code Example

Expand Down

0 comments on commit 62ea26a

Please sign in to comment.