Open dy opened 8 years ago
Tiny benchmark has shown that there is no difference. I guess it would be easier for a user to get float32array in return, if uint8array is passed as an argument:
var floatArray = unpackFloat(buffer);
@mikolalysenko what do you think?
This module also allows for instant conversion to a float32array. Look at how the decoding works: https://github.com/mikolalysenko/glsl-read-float/blob/master/index.js#L1-L12
Hi @mikolalysenko @hughsk! There is another solution from here:
The benefit is instant conversion of result to Float32Array:
Just wanted to know your thoughts on that, because there are gl-texture2d-read-float and others depending on that.