#!/usr/bin/env python3 """Embed two GLSL passes into a standalone page. build_plasma.py [scene.frag] [ice.frag] [out.html] Defaults to the plasma wall: 6_ice_plasma.frag + 7_ice_over.frag -> ice_plasma.html.""" import json import sys from pathlib import Path here = Path(__file__).resolve().parent args = (sys.argv[1:] + ['6_ice_plasma.frag', '7_ice_over.frag', 'ice_plasma.html'])[:3] scene = (here / args[0]).read_text() ice = (here / args[1]).read_text() html = r'''