Firstborn/Library/PackageCache/com.unity.shadergraph@12.1.11/Documentation~/Boolean-Node.md
Schaken-Mods 9092858a58 updated to the latest editor
I updated everything to the latest Unity Editor. Also realized I had the wrong shaders on my hairs, those are fixed and the hairs look MUCH better!
2023-05-07 17:43:11 -05:00

915 B

Boolean Node

Description

Defines a constant Boolean value in the Shader Graph, although internally to the shader this is treated as a constant float value that is ether 0 or 1, similar to Shaderlab's Toggle property. Can be converted to a Boolean type Property via the Node's context menu.

Ports

Name Direction Type Binding Description
Out Output Boolean None Output value

Controls

Name Type Options Description
Toggle Defines the output value.

Generated Code Example

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

float _Boolean = 1;