1 2 3 4 5 6 7
(function(){ var fn_str = demo_shader.innerHTML var shader = new Function('lex', 'x', 'y', fn_str) window.shader = shader })()