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.
|
4 years ago | |
---|---|---|
.. | ||
.npmignore | 4 years ago | |
LICENSE | 4 years ago | |
README.md | 4 years ago | |
package.json | 4 years ago | |
triangle.js | 4 years ago |
README.md
a-big-triangle
Draws a big triangle that covers the entire viewport. Useful for GPGPU or when applying fullscreen postprocessing effects.
If you're wondering why a big triangle and not a big square made from two smaller triangles, there are potentially significant performance advantages in taking the former approach.
Example
var shell = require("gl-now")()
var drawTriangle = require("a-big-triangle")
var createShader = require("gl-shader")
var shader
shell.on("gl-init", function() {
shader = createShader(shell.gl,
"precision mediump float;\
attribute vec2 position;\
varying vec2 uv;\
void main() {\
uv = position.xy;\
gl_Position = vec4(position.xy, 0.0, 1.0);\
}",
"precision mediump float;\
varying vec2 uv;\
void main() {\
gl_FragColor = vec4(uv, 0, 1);\
}")
})
shell.on("gl-render", function() {
shader.bind()
drawTriangle(shell.gl)
})
Install
npm install a-big-triangle
API
require("a-big-triangle")(gl)
Draws a fullscreen triangle.
gl
is a WebGL context
Credits
(c) 2013