Vertex attribute slot the position stream is bound to.
Fixed by layout(location = 0) in the vertex shader rather than looked up
with getAttribLocation (decision, WP-3.5). GLSL ES 3.00 supports explicit
attribute locations, so the location is a property of the source, not of a
particular link; that removes one query from initialization, removes one
method from WebglContext, and — more usefully — makes vertex arrays
built by gl-geometry.ts independent of any program, which is what will let
a second pipeline reuse them unchanged.
Vertex attribute slot the position stream is bound to.
Fixed by
layout(location = 0)in the vertex shader rather than looked up withgetAttribLocation(decision, WP-3.5). GLSL ES 3.00 supports explicit attribute locations, so the location is a property of the source, not of a particular link; that removes one query from initialization, removes one method from WebglContext, and — more usefully — makes vertex arrays built bygl-geometry.tsindependent of any program, which is what will let a second pipeline reuse them unchanged.