CameraLens¶
Class ยท server and client scripts
CameraLens configures a camera entity's perspective field of view, clip planes, render layer cull mask, and optional oblique clip plane. Access it through camera.CameraLens.
Example
FovY¶
FovY is the field of view, in radians, across the viewport axis selected by FovAxis.
Default 1.22173
NearZ¶
NearZ is the near clip plane distance in world units.
Default 0.1
FarZ¶
FarZ is the far clip plane distance in world units.
Default 1000
FovAxis¶
FovAxis chooses which viewport axis FovY spans: 0 for view height, and 1 for view width.
Default 0
ClipEnabled¶
ClipEnabled clips geometry behind the plane defined by ClipNormal and ClipOffset on secondary views such as portals and mirrors.
Default false
CullMask¶
CullMask is the bitmask of RenderMask layers rendered by this camera; -1 draws all layers.
Default -1
ClipNormal¶
ClipNormal is the world-space normal of the custom clip plane; points satisfy dot(ClipNormal, p) + ClipOffset >= 0.
Default Vector3.new(0, 1, 0)
ClipOffset¶
ClipOffset is the world-space plane offset d in dot(ClipNormal, p) + d >= 0.
Default 0