This is a JavaScript / GLSL library for performing parallel reductions on the GPU in Three.js. It is useful if you need to do binary reduction operations, such as a sum, on the data of a GPU texture (e.g. THREE.DataTexture
, THREE.WebGLRenderTarget
etc), in parallel. The time complexity for the reductions is O(lg N).
- Supported parallel reduction operations: sum
- Extract final reduced results out from GPU to CPU as floating-point values, if necessary
Tested only in Google Chrome (recommended) and Mozilla FireFox
Released under The MIT License (MIT)
Copyright (c) 2013 Skeel Lee (http://cg.skeelogy.com)