perspective_lens
A lens that applies a perspective projection.
Dependencies
Attributes
Attribute | Type | Default | Description |
---|---|---|---|
aspectRatio | float | 1.777 | Aspect ratio of the viewport, usually equals width/height. |
fovy | float | 60 | Field of view angle in the y direction. |
nearPlane | float | 0.01 | Distance from the viewer to the near clipping plane. |
farPlane | float | 0 | Distance from the viewer to the far clipping plane. |
offset | vec2 | [ 0, 0 ] | Offset of the projection for stereoscopic rendering. |