UNPKG

s2maps-gpu

Version:

S2 Maps GPU - An open source, high-performance, and GPU-accelerated map engine for rendering large-scale, interactive maps.

10 lines (9 loc) 434 B
import type { MaskSource } from '../workflows/workflow.spec.js'; import type { WebGL2Context, WebGLContext } from './index.js'; /** * Given a Tile division size, build a Mask Source * @param division - number of division to slice the geometry by * @param context - The current rendering context * @returns The mask source */ export default function buildMask(division: number, context: WebGL2Context | WebGLContext): MaskSource;