greggman / twgl.js

A Tiny WebGL helper Library
http://twgljs.org
MIT License
2.67k stars 260 forks source link

Adds support for float, vec2/3 constant attributes #127

Closed tuner closed 5 years ago

tuner commented 5 years ago

Support for constant attributes was incomplete, only vec4 was supported. This patch adds support for float, vec2, and vec3 attributes.

Also, an error is thrown for unsupported array/vector lengths.

greggman commented 5 years ago

Thanks!