// WebGL example with texture panels

import Stats from 'stats-gl'

const stats = new Stats({ trackGPU: true });
stats.init(canvas);

// Create texture preview panels
stats.addTexturePanel('Color');
stats.addTexturePanel('Luma');
stats.setTextureWebGL('Color', colorFbo, 256, 256);
stats.setTextureWebGL('Luma', lumaFbo, 256, 256);

function animate() {
    stats.begin();
    renderPlasmaToFBO();
    renderLuminancePass();
    blitToScreen();
    stats.end();
    stats.update();
}