CropMode
Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.
enum CropMode { "camera_full", "screen_full", "screen_square" }
The region of the camera frames that this texture displays.
Member List
Section titled “Member List”Member | Description |
---|---|
camera_full | The texture will map full UV coordinates (0, 0) to (1, 1) to the full camera frame as received from the camera sensor. Ordinarily this frame will have a 4:3 aspect ratio but this should not be relied upon. |
screen_full | The texture will map full UV coordinates to the rectangle of the camera frame that is displayed on the device screen. |
screen_square | The texture will map full UV coordinates to the square central region of the camera frame that is displayed on the device screen. |