enable anti aliasing
This commit is contained in:
parent
6f50150a6b
commit
e842eb3d66
|
@ -409,6 +409,11 @@ async function init() {
|
|||
gl.enable(gl.BLEND);
|
||||
gl.blendFunc(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA);
|
||||
|
||||
gl.enable( gl.LINE_SMOOTH );
|
||||
gl.enable( gl.POLYGON_SMOOTH );
|
||||
gl.hint( gl.LINE_SMOOTH_HINT, gl.NICEST );
|
||||
gl.hint( gl.POLYGON_SMOOTH_HINT, gl.NICEST )
|
||||
|
||||
// start drawing
|
||||
requestAnimationFrame(draw);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue