Log inGet started
Package

lanternStair.package

README.md

Instancer

Hardware-instanced draws with distance levels of detail for the lanternStair kit: one renderer.mesh.drawInstanced per part per level, each copy placed by a matrix (position, yaw and non-uniform scale) in a GPU buffer, re-sorted into near / mid / far / culled by distance from the camera as it moves, a few groups per frame. Follows forestKit's ForestRender (MIT) pattern.

local inst = Instancer.new(root, { quality = 1 })
inst:add("rocks", function(lod) return Props.parts("boulder", { lod = lod }) end, { { x, y, z, yaw, s } }, { 25, 70, 200 }, { true, false, false })
inst:refresh()       -- once, after adding
inst:update()        -- every frame