Repository navigation
Description
Add useful point/spot lighting to the opt-in CPU render path tracked in #1368/#620. Current RT2 directional lights and the rectangular-light work in #1652 do not provide a finite-position spotlight with a controlled cone.
Use original Rust mathematics and the existing ProductScene/image job, work budget, cancellation, host queue/pool and PNG publication. Define world-space position and emitted direction, millimetre distance conversion, finite relative intensity, linear colour, inner/outer half angles and a documented smooth cone falloff. Point mode has no cone. Define inverse-square reference distance and near-source behaviour explicitly; do not advertise calibrated lumens/lux or measured IES fixtures without that implementation.
Implement one small mathematical module plus the actual direct-light consumer and request/preflight/host wiring. Visibility uses the existing safe secondary origin and a finite interval ending at the light. Bound total retained emitter slots/sample work together with other direct lights; charge original input capacities and request metadata for their actual lifetime. Default raster/feature-off paths remain unchanged, unsupported requests refuse before capture. Options are initially transient, not a persistence/format change.
Keep UI authoring as a small separate patch after the consumer contract stabilizes. New canvases/cameras reuse shared navigation; commands remain the common application path. Coordinate with HDR/reflection/anisotropy source integration rather than adding a second ImageTask or a renderer-specific pool.
Acceptance: analytical 1/r² ratio, cone interior/boundary/outside, rotation/translation and hostile numbers; real occlusion and independent coloured emitters; work/cancellation/memory tests; an original scene with actual spotlight PNG and clear limitations, native/wasm/Clippy and project gates. KHR_lights_punctual is public interoperability vocabulary, not imported implementation code. Export support remains a separate verified capability.
Activity
dudedagger42 commentedon Oct 23, 2026
Triage by dudedagger42: a render feature request with an open PR from the author: #1729 (part of #1652).
solidcore: move the pin to bba8d8798 (main, with solidcore#1747 appli…