@luma.gl/shadertools
Version:
Shader module system for luma.gl
11 lines (9 loc) • 371 B
TypeScript
import {ShaderPass} from '../../types';
/**
* Hexagonal Pixelate
* Renders the image using a pattern of hexagonal tiles. Tile colors
* are nearest-neighbor sampled from the centers of the tiles.
* @param center The [x, y] coordinates of the pattern center.
* @param scale The width of an individual tile, in pixels.
*/
export const hexagonalPixelate: ShaderPass;