3 ms·
Why aren't you just doing this, for example? <script id="fragment" type="x-shader"> precision highp float; uniform vec3 glyphColor; void main() {
by waynecochran 12y ago
Why 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.