Log inGet started
Package

styles.module

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

styles

The five art styles of Hearthvale (anime, painted, toon, realistic, lowpoly) and the runtime material each material slot wears in each style. anime: toonMaterials' toonSurface with two-tone cel light, lavender shadows, a rim and anime background textures; painted: soft bands over hand-painted textures; toon: flat palette colours, three hard bands and an ink line; realistic: generated PBR maps through the engine's pbr shader; lowpoly: flat matte palette colours. Materials are made once per (style, slot) and shared, so a whole town draws instanced. Styles.material(style, slot), Styles.texture(style, name), Styles.ink(style), Styles.IDS, Styles.PALETTE. Called by townKit.api and townKit.props.