Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
CameraTexture¶
Inherits: Texture2D < Texture < Resource < RefCounted < Object
由 CameraFeed 提供的纹理。
Description¶
该纹理可以访问 CameraFeed 提供的相机纹理。
注意:许多相机提供的都是 YCbCr 图像,需要在着色器中进行转换。
Properties¶
|
||
|
||
resource_local_to_scene |
|
|
|
Property Descriptions¶
int camera_feed_id = 0
我们要显示图像的 CameraFeed 的 ID。
bool camera_is_active = false
给予访问 CameraFeed 的活动属性的便利属性。
FeedImage which_feed = 0
我们要访问 CameraFeed 中的哪个图像,如果相机图像被分割成 Y 和 CbCr 分量,这一点很重要。