This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var createKDTree = require("static-kdtree"); | |
const resl = require('resl'); | |
const regl = require('regl')({ | |
attributes: {preserveDrawingBuffer: true} | |
}); | |
const quad = require('glsl-quad'); | |
var us = require('microseconds'); | |
const drawTexture = regl({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const resl = require('resl'); | |
const regl = require('regl')({ | |
attributes: {preserveDrawingBuffer: true} | |
}); | |
const quad = require('glsl-quad'); | |
var us = require('microseconds'); | |
const drawTexture = regl({ | |
vert: quad.shader.vert, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const resl = require('resl'); | |
const regl = require('regl')({ | |
extensions: ['OES_texture_float'], | |
attributes: {preserveDrawingBuffer: true} | |
}); | |
const quad = require('glsl-quad'); | |
var us = require('microseconds'); | |
const drawTexture = regl({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const resl = require('resl'); | |
const regl = require('regl')({ | |
extensions: ['OES_texture_float'], | |
attributes: {preserveDrawingBuffer: true} | |
}); | |
const quad = require('glsl-quad'); | |
var us = require('microseconds'); | |
const drawTexture = regl({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const range = require('array-range'); | |
const quad = require('glsl-quad'); | |
const resl = require('resl'); | |
const regl = require('regl')({ | |
extensions: ['OES_texture_float', 'EXT_shader_texture_lod'], | |
// TODO: FIXME: dunno why we need this here, we do not read non-uint8 data from screen, | |
// but it fails without this on gh-pages for some reason. | |
attributes: {preserveDrawingBuffer: true}, | |
profile: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const quad = require('glsl-quad'); | |
const $ = require('jquery-browserify'); | |
const ms = require('microseconds'); | |
const regl = require('regl')({ | |
extensions: ['OES_texture_float', 'EXT_disjoint_timer_query'], | |
optionalExtensions: [], | |
attributes: {preserveDrawingBuffer: true} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const regl = require('regl')({ | |
extensions: 'OES_texture_float' | |
}) | |
const N = 256 | |
const initialPosition = Array(N).fill().map((_, i) => | |
Array(N).fill().map((_, j) => [ | |
i, | |
j, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const resl = require('resl'); | |
const regl = require('regl')({ | |
extensions: ['OES_texture_float'], | |
attributes: {preserveDrawingBuffer: true} | |
}); | |
const quad = require('glsl-quad'); | |
var us = require('microseconds'); | |
const drawTexture = regl({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let regl = require('regl')(); | |
var $ = require('jquery-browserify') | |
var FlowGraph = require('flowgraph') | |
var FlowGraphView = require('flowgraph-editor') | |
var insertCss = require('insert-css') | |
// define your graph | |
graph = new FlowGraph() | |
let wat = graph.addNode('a', ['in'], ['out']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
<p>This example shows how you can use mipmaps in regl.</p> | |
*/ | |
const regl = require('regl')({ | |
extensions: ['EXT_texture_filter_anisotropic'] | |
}) | |
const drawCheckerboard = regl({ |