The demos I have seen all define shaders in html, and get them by name. Is there a way in javascript to create them from strings?
Instead of:
var fragmentShader = getShader(gl, "shader-fs");
something like:
var fragmentShader = createShader(gl,
"fragment code here "
);