Log inGet started
Package

sengokuTownKit.package

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

README.md

TownRender

Draws a town's placed props as hardware-instanced draws, one draw per prop part per level of detail, re-sorting instances into near, mid and far by distance from the camera a few groups per frame (the approach of forestKit's ForestRender, written for sengokuProps' catalog, its looks and non-uniform scale). TownRender.new(instances, { look, parent, props }) builds the draws; view:update() runs every frame; view:setQuality(q) scales the distances in TownRender.BANDS (per category, such as building 70/180/900 m and rice 14/32/70 m for the LOD1, LOD2 and cull distances); view:setLook(look) rebuilds the draws for another look with placements unchanged; view:refresh() re-sorts at once and view:destroy() frees everything. Which levels cast shadows is set per category. A kind the prop catalog does not know draws as a plain box of its footprint. Created and driven by TownBuilder.