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.
24 lines
605 B
24 lines
605 B
precision mediump float;
|
|
|
|
uniform vec4 color, borderColor;
|
|
uniform float centerFraction;
|
|
uniform float pointCloud;
|
|
|
|
void main() {
|
|
float radius;
|
|
vec4 baseColor;
|
|
if(pointCloud != 0.0) { // pointCloud is truthy
|
|
if(centerFraction == 1.0) {
|
|
gl_FragColor = color;
|
|
} else {
|
|
gl_FragColor = mix(borderColor, color, centerFraction);
|
|
}
|
|
} else {
|
|
radius = length(2.0 * gl_PointCoord.xy - 1.0);
|
|
if(radius > 1.0) {
|
|
discard;
|
|
}
|
|
baseColor = mix(borderColor, color, step(radius, centerFraction));
|
|
gl_FragColor = vec4(baseColor.rgb * baseColor.a, baseColor.a);
|
|
}
|
|
}
|
|
|