Adds --check (compile every effect without camera or window), EFFECTS.md (the contract for writing effects) and AGENTS.md. The POC stays available at the 'poc' tag. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
824 B
824 B
MotionLab
A small native macOS app: camera in, a chain of Metal shader effects, out to a window, a recording or a virtual camera.
- Adding or changing an effect: read
EFFECTS.mdfirst. An effect is one file ineffects/; the Swift code does not need to change. - Build:
swift build -c release(Command Line Tools are enough, no Xcode). - Check effects without a camera or window:
.build/release/MotionLab --check - Run:
.build/release/MotionLab(options are listed at the top ofSources/MotionLab/main.swift).
Layout:
Sources/MotionLab/the app.Shaders.swiftholds the wrapper every effect is compiled into;Analysis.swiftcomputes the motion inputs;Renderer.swiftruns the chain.effects/one.metalfile per effect.captures/screenshots and recordings (not in git).