mirror of
https://github.com/patriciogonzalezvivo/thebookofshaders
synced 2024-11-03 23:15:23 +00:00
19 lines
427 B
Markdown
19 lines
427 B
Markdown
|
## Not
|
||
|
Logically invert a boolean vector
|
||
|
|
||
|
### Declaration
|
||
|
```glsl
|
||
|
bvec2 not(bvec2 x)
|
||
|
bvec3 not(bvec3 x)
|
||
|
bvec4 not(bvec4 x)
|
||
|
```
|
||
|
|
||
|
### Parameters
|
||
|
```x``` specifies the vector to be inverted.
|
||
|
|
||
|
### Description
|
||
|
```not()``` logically inverts the boolean vector ```x```. It returns a new boolean vector for which each element ```i``` is computed as ```!x[i]```.
|
||
|
|
||
|
### See Also
|
||
|
[any()](index.html#any.md), [all()](index.html#all.md)
|