import { loadScriptAsync } from '../utils/dom' ; let glslang ; export default async function ( ) { if ( glslang ) { return glslang ; } await loadScriptAsync ( 'https://preview.babylonjs.com/glslang/glslang.js' ) ; glslang = ( window as any ) . glslang ( 'https://preview.babylonjs.com/glslang/glslang.wasm' ) ; return glslang ; }