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.
27 lines
579 B
27 lines
579 B
precision mediump float;
|
|
|
|
attribute vec2 position;
|
|
attribute vec2 tangent;
|
|
attribute vec4 color;
|
|
|
|
uniform mat3 viewTransform;
|
|
uniform vec2 screenShape;
|
|
uniform float lineWidth;
|
|
uniform float pointSize;
|
|
|
|
varying vec4 fragColor;
|
|
|
|
void main() {
|
|
fragColor = color;
|
|
|
|
vec3 vPosition = viewTransform * vec3(position, 1.0);
|
|
vec2 vTangent = normalize(viewTransform * vec3(tangent, 0)).xy;
|
|
vec2 offset = vec2(vTangent.y, -vTangent.x) / screenShape;
|
|
|
|
gl_Position = vec4(
|
|
vPosition.xy + offset * lineWidth * vPosition.z,
|
|
0,
|
|
vPosition.z);
|
|
|
|
gl_PointSize = pointSize;
|
|
}
|
|
|