You need to enable JavaScript to run this app.GLSL Chunks - GammaCV
GammaCV Logo



WebGL chunks is a set of helper functions that help enable code reuse and utilize higher-level abstractions in your GPU kernels. To use chunk, you must type operationsRegister.LoadChunk(...chunkNames). Some chunks are used under the hood, it is:

  • main - Used to wrap operations into a smart entry point.
  • float - Used as a polyfill the float textures on some devices.

Function pickValue_INPUTNAME (y, x) => vec4


Returns pixel data of texture with the same coordinates as current operation pixel.

yfloatcoordinate of needed pixel
xfloatcoordinate of needed pixel