RenderCamera
Up and coming: shot check knows this class and its members today, and programs run it once the native runtime lands.
Up and coming
Point a camera at your mesh batches and get colour, depth, normals and positions back.
Orthographic for maps and icons, with Viewport in studs across, or perspective, with FieldOfView in degrees. RenderAsync draws MeshBatches into a set of textures, Color with optional Depth, Normal and Position, each ready for an ImageProcessor's edges or ambient occlusion.
Made with Instance.new("RenderCamera") or Clone().
Properties
| Name | Type | Default | Description |
|---|---|---|---|
| CFrame | CFrame | ||
| Orthographic | boolean | True for maps and icons, sized by Viewport; false uses FieldOfView. | |
| Viewport | Vector2 | How many studs across the view is, when Orthographic. | |
| FieldOfView | number | In degrees, when not Orthographic. | |
| LightDirection | Vector3 |
Methods
| Name | Arguments | Returns | Description |
|---|---|---|---|
| RenderAsync yields | (batches: { MeshBatch }, maps: RenderMaps) | (boolean, string?) | Draws the batches into the maps given, Color and any of Depth, Normal and Position, and waits for the draw. |
From ShotInstance 33
ClassNameNameParentAncestryChangedAttributeChangedChangedChildAddedChildRemovedDestroyingAddTagClearAllChildrenCloneDestroyFindFirstAncestorFindFirstAncestorOfClassFindFirstAncestorWhichIsAFindFirstChildFindFirstChildOfClassFindFirstChildWhichIsAGetAttributeGetAttributeChangedSignalGetAttributesGetChildrenGetDescendantsGetFullNameGetPropertyChangedSignalGetTagsHasTagIsAIsAncestorOfIsDescendantOfRemoveTagSetAttribute
