Newbie to twgl here, in my use case position attribute changes let's say based on user mouse down event. For every click, we use mouse xy to set position attribute. Position is a vec2 attribute.
Currently i create bufferinfo once with initial xy values. How do i go about setting values after mouse clicks. Should be recreating buffer info?
Newbie to twgl here, in my use case position attribute changes let's say based on user mouse down event. For every click, we use mouse xy to set position attribute. Position is a vec2 attribute.
Currently i create bufferinfo once with initial xy values. How do i go about setting values after mouse clicks. Should be recreating buffer info?
All examples don't change position attributes
Any help is greatly appreciated