4 ms·
I thank you from the bottom of my heart. This drove me crazy when playing around with WebGL and shaders, because for various reasons I didn't want to put those
by PavlovsCat 12y ago
I thank you from the bottom of my heart. This drove me crazy when playing around with WebGL and shaders, because for various reasons I didn't want to put those in separate files.
- waynecochran 12y agoWhy aren't you just doing this, for example? <script id="fragment" type="x-shader"> precision highp float; uniform vec3 glyphColor; void main() { gl_FragColor = vec4(glyphColor, 1.0); } </script>
- PavlovsCat 12y agoBecause you can't do that from within javascript, and my HTML was really just a stub to load all the javascript I didn't want to have to otherwise deal with.