plasma-arc / wgpu-config.js
p3nGu1nZz's picture
implement game ticks
538ade1
raw
history blame
487 Bytes
// wgpu-config.js
export const config = {
glyphsAcrossTexture: 16,
glyphWidth: 32,
glyphHeight: 40,
maxGlyphs: 100,
vertsPerGlyph: 6,
floatsPerVertex: 8,
uniformBufferSize: 64,
canvas: {
width: 512,
height: 256
},
context: {
font: '32px monospace',
textBaseline: 'middle',
textAlign: 'center',
fillStyle: 'white'
},
render: {
zNear: 0.001,
zFar: 50
},
maxFPS: 60
};