xprite-phase

rhinoc

A TypeScript library adding 2.5D layered geometry, phase-field weathering, palette-preserving relighting, and surface-colliding particles to 2D pixel art.

TypeScriptCreated

What is rhinoc/xprite-phase?

Xprite Phase is a TypeScript graphics library that applies 2.5D layered intrinsic geometry, discrete phase-field weathering, palette-preserving relighting, and surface-colliding particle effects to 2D pixel art. It enables procedural surface aging and dynamic lighting without breaking restricted pixel-art color palettes.

Built on top of the @xprite/lighter package for the Xprite pixel editor, the library runs in both web browsers and Node.js environments. It also provides an optional WebGL2 renderer alongside Godot 4 shaders, allowing effects such as normal-map relighting and procedural weathering to integrate into different rendering pipelines. Repository documentation includes links to a live demo, a technical write-up, and bilingual English and Simplified Chinese overviews.

Pixel artists, game developers, and toolmakers building 2D sprite pipelines in browsers, Node.js, or Godot 4 can use this package to add procedural weathering, relighting, and particle physics to sprites.

game-devnormal-mapphase-fieldpixel-artprocedural-generationrelightingspritestypescript

Facts from GitHub (updated Dec 1, 2026). License summaries are simplified: check the license file. RepoRanking reviews listings for relevance and spam, and doesn't test or vouch for code.