- Install node.js
- Install dependencies:
npm i
- Start the dev server:
npm run start-dev
- TypeScript for writing type-safe JS
- webgl-operate as wrapper for WebGL
- Webpack as build system
- Pug for building the page
- The
TopicMapRenderer
- Creates and manages the different render passes
- Provides a framebuffer for the passes to render to
- Uses an additional AccumulatePass to provide MFAA
- Each render pass
- Prepares the geometry to render
- Prepares a shader program
- Can be updated by assigning to the exposed members
- Is invoked by the Renderer using
frame()
const configuration = {
data: 'https://api.varg.dev/users/topicmap/datasets/topics/data',
axes: ['first', 'second', 'third']
};
const child = window.open('http://vidi.lwgnr.dev');
child.addEventListener('message', (msg) => {
if(msg.data.type === 'ready')
child.postMessage({ type: 'configuration', preset });
});
For more details see interface.ts.