Frontend API
frontend package は geometry と view state を backend-neutral draw commands に変換します。
Types
SceneObject: mesh + transform。Light: directional light。Scene: objects + light。RenderView: camera + projection。DrawTriangle: projected triangle + intensity。DrawList: backend が消費する triangle command list。ShutterSpeed: seconds 単位の shutter duration。ExposureSettings: shutter、frame interval、derived sample count。LumaBuffer: depth 付き floating-point luma buffer。FlowVector/FlowField: image-space optical flow。Timeline: offline sampling 用の duration と fps。TimelineSample: frame index、seconds、normalized progress。ScalarKeyframe/ScalarTrack: linear interpolation する scalar keyframe track。
API
Scene::new/Scene::singleScene::add_objectRenderView::perspectiveRenderView::scientificbuild_draw_list: transform、culling、directional-light shadow map、triangle lighting を実行します。ShutterSpeed::seconds/ShutterSpeed::reciprocalExposureSettings::autodraw_list_to_lumaestimate_optical_flowaccumulate_with_flow/average_lumaTimeline::new/frame_count/sampleScalarTrack::sample
DrawList は Char、FrameBuffer、ANSI、terminal aspect ratio を含みません。