StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
StackGenVis/frontend/node_modules/glsl-out-of-range/README.md

59 lines
1.4 KiB

## glsl-out-of-range
Tests if a point is outside ranges.
It could be useful in vertex & fragment shaders to support reversed ranges (bounds) in 3D/2D scenes.
Function prototypes:
bool outOfRange(float a, float b, float p);
bool outOfRange(vec2 a, vec2 b, vec2 p);
bool outOfRange(vec3 a, vec3 b, vec3 p);
bool outOfRange(vec4 a, vec4 b, vec4 p);
Please note that in the case of vec4 input arguments, only 3 tests are made i.e. for xyz and not for w.
## Example
```glsl
#pragma glslify: outOfRange = require(glsl-out-of-range)
void main() {
if (outOfRange(bounds[0], bounds[1], position)) discard;
gl_FragColor = vec4(1.0, 0.5, 0.25, 1.0);
}
```
## Usage
Install with npm:
```
npm install glsl-out-of-range
```
Then use with [glslify](https://github.com/stackgl/glslify).
## API
```glsl
#pragma glslify: outOfRange = require(glsl-out-of-range)
```
## Creators
| | Github | Twitter |
|---|--------|---------|
|**Alex C. Johnson**| [@alexcjohnson](https://github.com/alexcjohnson) | |
|**Étienne Tétreault-Pinard**| [@etpinard](https://github.com/etpinard) | [@etpinard](https://twitter.com/etpinard) |
|**Mojtaba Samimi**| [@archmoj](https://github.com/archmoj) | |
## Copyright and license
Code and documentation copyright 2018 Plotly, Inc.
Code released under the [MIT license](https://github.com/plotly/plotly.js/blob/master/LICENSE).
Docs released under the [Creative Commons license](https://github.com/plotly/documentation/blob/source/LICENSE).