empaempa / GLOW

GLOW is a WebGL wrapper, which focuses on easy creation and use of shaders.
http://i-am-glow.com
MIT License
244 stars 28 forks source link

add bufferSubData to Attribute, rebuild #28

Closed skinner closed 10 years ago

skinner commented 10 years ago

This pull request adds a bufferSubData method to Attribute, which assumes that the buffer already exists and errors otherwise.

I'm not sure how best to handle edge/error cases here, or how well bufferSubData fits into the way that GLOW.Attribute expects to do things. So if you have feedback about how this should be done differently, I'm happy to revise.

empaempa commented 10 years ago

Thanks! Great addition :)

Just curious: what type of project are you doing? Is there something I can see?

skinner commented 10 years ago

Thanks for merging!

The thing that prompted this pull request is just an exercise, for now: http://arctur.us/demos/webgl-circles-1/

My longer-term goal is to do data visualization. I'm thinking of having a system where users can explore higher-dimensional data by flipping smoothly between different projections of that data into 3-dimensional space (inspired by the game Miegakure).

empaempa commented 10 years ago

Wonderful! Let me know when it's up and running. And thanks again for the addition :)