mirror of
https://github.com/patriciogonzalezvivo/thebookofshaders
synced 2024-11-03 23:15:23 +00:00
15 lines
439 B
Markdown
15 lines
439 B
Markdown
## Bool
|
|
Boolean variable type
|
|
|
|
### Declaration
|
|
```glsl
|
|
bool aBool = true;
|
|
bool bBool = bool(aInt);
|
|
bool cBool = bool(aFloat);
|
|
```
|
|
|
|
### Description
|
|
```bool``` data type is either true or false.
|
|
|
|
### See Also
|
|
[void](index.html#void.md), [bool](index.html#bool.md), [int](index.html#int.md), [float](index.html#float.md), [bvec2](index.html#bvec2.md), [bvec3](index.html#bvec3.md), [bvec4](index.html#bvec4.md), [struct](index.html#struct.md) |