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

GLSLChunks

Description

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

Description

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

Params
yfloatcoordinate of needed pixel
xfloatcoordinate of needed pixel