PDA

View Full Version : uintBitsToFloat conversion



enote
01-20-2011, 07:31 AM
I wonder if I get after the uintBitsToFloat then floatBitsToUint conversions the same Uint? There are only float32 textures in WebGL yet.

Groovounet
01-20-2011, 09:53 AM
I don't think uintBitsToFloat or floatBitsToUint are supported by WebGL as it is an OpenGL 3 hardware feature.

enote
01-20-2011, 10:23 PM
WebGL doesn't support even Uint. But you can switch off shader-validation and use OpenGL drivers (instead of ANGLE). Then shaders are just passed to OpenGL drivers and you can get 400GFlops in nightly Chromium on your home PC in N-Body simulations (I use Radeon 4870)
http://www.ibiblio.org/e-notes/webgl/webgl.htm
I'd like to make more accurate Monte-Carlo simulations now.