Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unpacked rgba format #27

Open
gnonio opened this issue May 2, 2016 · 1 comment
Open

Unpacked rgba format #27

gnonio opened this issue May 2, 2016 · 1 comment

Comments

@gnonio
Copy link

gnonio commented May 2, 2016

Cheers for a great lib weblas is. Very good stuff, learned quite a lot wrt webgl thanks to it.

I introduced some modifications to better suit my needs. But before begining PRs I wanted to let you know about the direction I am giving them: give a look at the initial weblas fork and the latter weblas-unpacked which evolved into a plugin depending on weblas.

The main modification is in respect to the texture format. Weblas-unpacked opts for a single value per texel format. This prevents packing and unpacking, both transfering to and from GPU at the cost of increased memory (which can be recovered to an extent). The aim being to simplify shader logic and packing/unpacking operations when algorithms encourage multiple stages within the GPU. It also provides direct float values reading, preventing encoding. This does imply that shaders cannot be shared between both formats (facilities to convert between them are provided though). Check the project for more details.

Currently integration of both is a bit hacky (overwriting some class methods, bad I know), I might focus a bit in easing this and suggest some PRs towards that. Hopefully I am not deviating too much from your aims, and my very lean coding experience won't boil your head (really, don't look at my gl-compute at all, this is mainly a hobby for me).

Thanks again for this great library.

@waylonflinn
Copy link
Owner

Looking forward to checking this out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants