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/gl-mesh3d/lib/shaders.js

67 lines
1.8 KiB

var glslify = require('glslify')
var triVertSrc = glslify('./triangle-vertex.glsl')
var triFragSrc = glslify('./triangle-fragment.glsl')
var edgeVertSrc = glslify('./edge-vertex.glsl')
var edgeFragSrc = glslify('./edge-fragment.glsl')
var pointVertSrc = glslify('./point-vertex.glsl')
var pointFragSrc = glslify('./point-fragment.glsl')
var pickVertSrc = glslify('./pick-vertex.glsl')
var pickFragSrc = glslify('./pick-fragment.glsl')
var pickPointVertSrc = glslify('./pick-point-vertex.glsl')
var contourVertSrc = glslify('./contour-vertex.glsl')
var contourFragSrc = glslify('./contour-fragment.glsl')
exports.meshShader = {
vertex: triVertSrc,
fragment: triFragSrc,
attributes: [
{name: 'position', type: 'vec3'},
{name: 'normal', type: 'vec3'},
{name: 'color', type: 'vec4'},
{name: 'uv', type: 'vec2'}
]
}
exports.wireShader = {
vertex: edgeVertSrc,
fragment: edgeFragSrc,
attributes: [
{name: 'position', type: 'vec3'},
{name: 'color', type: 'vec4'},
{name: 'uv', type: 'vec2'}
]
}
exports.pointShader = {
vertex: pointVertSrc,
fragment: pointFragSrc,
attributes: [
{name: 'position', type: 'vec3'},
{name: 'color', type: 'vec4'},
{name: 'uv', type: 'vec2'},
{name: 'pointSize', type: 'float'}
]
}
exports.pickShader = {
vertex: pickVertSrc,
fragment: pickFragSrc,
attributes: [
{name: 'position', type: 'vec3'},
{name: 'id', type: 'vec4'}
]
}
exports.pointPickShader = {
vertex: pickPointVertSrc,
fragment: pickFragSrc,
attributes: [
{name: 'position', type: 'vec3'},
{name: 'pointSize', type: 'float'},
{name: 'id', type: 'vec4'}
]
}
exports.contourShader = {
vertex: contourVertSrc,
fragment: contourFragSrc,
attributes: [
{name: 'position', type: 'vec3'}
]
}