File size: 487 Bytes
1889a23
592c29d
551d60d
f316429
 
d828ac0
 
c75754c
a2241b7
a319f30
aaffc16
 
 
 
 
 
 
 
 
 
a319f30
 
 
538ade1
 
592c29d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// 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
};