About the Pixel art style
Pixel-art models keep real 3D geometry but texture it with deliberately small images, so the pixels stay sharp at any distance.
- Textures must be sampled with nearest/point filtering; bilinear filtering blurs them. In glTF the sampler is stored as NEAREST, and most engines pick it up on import.
- Avoid lossy texture compression that smears pixel edges; small textures cost little memory anyway.
- Leaves are alpha-tested cards with hard pixel edges, no soft alpha and no sorting.
- Geometry stays simple, so draw calls and triangle counts are close to low-poly.
For the full look, pair the models with a low internal render resolution or a pixelation post-effect. Typical genres: retro adventures, roguelites, farming and exploration games, 2.5D platformers.
Using it in three.js
In three.js, load GLB with GLTFLoader from three/addons; add DRACOLoader or KTX2Loader only if a file uses those extensions.
- Distance LOD:
THREE.LODwithlod.addLevel(mesh, distance)for LOD0–LOD3; it switches levels by camera distance every frame. - Forests:
InstancedMeshdraws thousands of copies in one draw call, andBatchedMeshmixes several tree variations.THREE.LODdoes not apply per instance, so group instances by LOD per chunk yourself. - Leaves: glTF alphaMode MASK becomes
material.alphaTest, and double-sided materials getside: THREE.DoubleSideautomatically. - Collision mesh: keep it invisible and pass it to a physics library such as Rapier or cannon-es.
Works with both WebGLRenderer and WebGPURenderer.