ashima/webgl-noise — Issue #4: pnoise is not repeating
Author: pyalot
Created: 2011-11-26 12:36:53+00:00
State: open

If noise is rendered per fragment, and the attached texture to the FBO is 512x512 pixels, then the gl_FragCoords go from 0.5 ... 511.5, using a period of 512 does not tile properly:

float value = pnoise(gl_FragCoord.xy*0.1, vec2(512.0*0.1)); // does not work