mirror of
https://github.com/patriciogonzalezvivo/thebookofshaders
synced 2024-11-03 23:15:23 +00:00
25 lines
930 B
Markdown
25 lines
930 B
Markdown
|
## GreaterThan
|
||
|
Perform a component-wise greater-than comparison of two vectors
|
||
|
|
||
|
### Declaration
|
||
|
```glsl
|
||
|
bvec2 greaterThan(vec2 x, vec2 y)
|
||
|
bvec3 greaterThan(vec3 x, vec3 y)
|
||
|
bvec4 greaterThan(vec4 x, vec4 y)
|
||
|
|
||
|
bvec2 greaterThan(ivec2 x, ivec2 y)
|
||
|
bvec3 greaterThan(ivec3 x, ivec3 y)
|
||
|
bvec4 greaterThan(ivec4 x, ivec4 y)
|
||
|
```
|
||
|
|
||
|
### Parameters
|
||
|
```x``` specifies the first vector to be used in the comparison operation.
|
||
|
|
||
|
```y``` specifies the second vector to be used in the comparison operation.
|
||
|
|
||
|
### Description
|
||
|
```greaterThan()``` returns a boolean vector in which each element ```i``` is computed as ```x[i] > y[i]```.
|
||
|
|
||
|
### See Also
|
||
|
[lessThanEqual()](index.html#lessThanEqual.md), [lessThan()](index.html#lessThan.md), [greaterThanEqual()](index.html#greaterThanEqual.md), [equal()](index.html#equal.md), [notEqual()](index.html#notEqual.md), [any()](index.html#any.md), [all()](index.html#all.md), [not()](index.html#not.md)
|