checker
A function node that procedurally generates a classic black and white checkerboard pattern.
Core Advantages
Generates a perfectly sharp, alias-free checkerboard pattern directly on the GPU without needing any image textures. This means zero resource overhead and high customizability.
Common Uses
UV Layout Debugging: Visually inspect model UVs for stretching or distortion.
Mixing Mask: Use as the factor for mix() to create a sharp, grid-like transition between two materials.
Final Texture: Directly apply as a texture for checkerboard floors, racing flags, or similar surfaces.
Pattern Primitive: Serve as a base for building more complex procedural patterns, like worn or varied checkerboards.
Alpha Mask: Connect to the alpha channel to easily create cutout effects like nets or fences.
How to adjust
Adjust the pattern by manipulating the `coord` input node. For example, multiplying `uv()` by a constant, like `checker(uv().mul(10))`, increases the grid's density. Adding `time()` to `uv()`, as in `checker(uv().add(time()))`, creates a scrolling animation effect.
Code Examples
1
2// Create a 10x10 checkerboard pattern
3const denseChecker = checker( uv().mul( 10 ) );
4
5// Multiply by red to get a red and black checkerboard
6const redAndBlackChecker = denseChecker.mul( 'red' );
7