Multiplying small numbers in shader causes strange behaviour

As described in the Frambuffer p5 library, it seems to be a texture precision issue: GitHub - davepagurek/p5.Framebuffer: A library for efficiently drawing to a texture in p5 WebGL mode.

The library seems to solve the issue giving this example: p5.js Web Editor

Unfortunately, there is no example of implementing a custom shader yet. I’ve posted an issue on Github: How to implement a custom shader? · Issue #28 · davepagurek/p5.Framebuffer · GitHub

Some more information that might be related:

1 Like