Files
aego/modules/render2d/res/docs/cameras.md
sanspie 6aec9dc544
ci / build (amd64, linux, ubuntu-24.04) (push) Failing after 1s
ci / checks (push) Failing after 1s
ci / release (push) Skipped
Stage 10a: virtual cameras, blends and zones (D305, D306); release 0.9.0-beta.1
2026-10-21 02:37:55 +03:00

1.4 KiB

id, icon, group, order, title
id icon group order title
render2d/cameras comp.camera2d rendering 2 Cameras

Cameras

Camera2D renders an orthographic view from the node's 2D transform. Only cameras with Active on render.

Zoom and scaling

Zoom is pixels per world unit; the default is 64. Larger values show a smaller part of the world.

Scale decides how the view follows the window size:

Mode Behaviour
free the visible area grows with the window
pixelPerfect keeps whole-pixel scaling of the Virtual resolution
fitVirtual fits the Virtual resolution into the window

Several cameras

Viewport is the part of the screen the camera draws into, in normalized coordinates; (0, 0, 1, 1) is the whole screen. Cameras render by Order, lower first. Mask selects visibility layers, -1 renders all of them. A camera drawn over another one usually turns Clear off; otherwise it fills its viewport with ClearColor first.

Virtual cameras

A Virtual Camera 2D can drive the view of a Camera 2D: follow a target, blend between shots, shake and react to zones. See Cameras 2D.