Builtin Library
README.md
renderLayer.camera
Set what a camera renders, as a layer-name filter.
renderLayer.camera("mainCamera", "all !shell")
renderLayer.camera("previewCamera", "all !ui !EditorUI")
renderLayer.camera({ component = { "Camera" } }, "all !debug")
renderLayer.camera("mainCamera") -- no filter: read it back
A filter is a space-separated spec: a bare name includes that layer,
!name excludes it, all includes everything. This is the same language
capture takes.
renderLayer.set puts geometry on a layer; this chooses which layers
a camera draws. The pair is what lets a wall occlude and bounce light
in a bake while staying out of the shot.
An entity without a Camera component is an error naming
renderLayer.set, since that is the tool for the other half.
Returns { id, name, renderLayers } per camera.