Log inGet started
World

Beechwood Brook: A Temperate Forest to Walk, with Trees, Undergrowth and a Forest Builder

README.md

ForestRender

Draws a Rules.place population as instanced GPU draws instead of one entity per plant: every prop part at every level of detail present is one renderer.mesh.drawInstanced call over a GPU transform buffer, so a forest of thousands of plants costs tens of draw calls, not thousands. Nothing is written to disk: a reload rebuilds the same draws from the same seed.

Called by ForestBuilder, not normally used on its own. Its update(eye) re-sorts instances into near/mid/far draws as the camera moves, spreading the work over a few groups a frame, and destroy() drops every buffer it created (verified 1:1 with its draw count: see NOTES.md). It also narrows the renderer's shadow casters to what a forest can afford: trees and dead trees cast through a cheaper mid-detail shadow proxy, logs/stumps/rocks cast at their near level only, everything else casts no shadow, and casters below a screen-space radius or past a quality-scaled distance stop casting at all.