glsl-checker
GLSL utility for checkered patterns.
uniform vec2 iResolution; # checker = require('glsl-checker') void
Usage
float c = checker(vec2 uv, float n)
Creates a checkered n x n
pattern with the given UV coordinates, returning a float 0.0 or 1.0.
License
MIT, see LICENSE.md for details.