voxel-render kpm/voxel-render verified
A lightweight WebGL engine for rendering voxel worlds in the browser at 60fps.
$kpm install voxel-render
Overview
voxel-render gives you a minimal WebGL pipeline purpose-built for block-based worlds: chunked meshing, frustum culling, and a texture atlas loader, with no scene-graph overhead to fight.
Usage
import { VoxelWorld } from "voxel-render";nnconst world = new VoxelWorld({ canvas, chunkSize: 16 });nworld.setBlock(0, 0, 0, "stone");nworld.render();
License
See the package license field in the sidebar. Published under the Kings Package Manager registry terms.