test that AttachmentOptions uses TextureOptions in ts

This commit is contained in:
Gregg Tavares 2019-11-03 14:22:45 +09:00
parent 508cd8897b
commit d01443f38b

View File

@ -31,6 +31,11 @@ window.addEventListener("onload", function() {
twgl.primitives.createDiscBufferInfo(gl, 1, 24),
twgl.primitives.createTorusBufferInfo(gl, 1, 0.4, 24, 12),
];
twgl.createFramebufferInfo(gl, [
{ format: gl.RGBA, minMag: gl.NEAREST },
]);
twgl.bindFramebufferInfo(gl, null);
function render(time: number) {
twgl.resizeCanvasToDisplaySize(canvas);