perspective
perspective()
Set-up a perspective projection environment.
Coordinates are transformed by a view matrix and then projected with perspective division:
and
, where
in view space.
By default this uses the same isometric camera angles as ortho, but with perspective foreshortening.
perspective({
on-xz({
rect((-1,-1), (1,1))
})
})
Distance from camera to scene origin. auto derives a stable value from scene depth.
Enable back-face culling if set to "cw" for clockwise or "ccw" for counter-clockwise. Polygons of the specified order will not get drawn.