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
继承: Texture2D < Texture < Resource < RefCounted < Object
由 CameraFeed 提供的纹理。
描述
该纹理可以访问 CameraFeed 提供的相机纹理。
注意:许多相机提供的都是 YCbCr 图像,需要在着色器中进行转换。
属性
|
||
|
||
resource_local_to_scene |
|
|
|
属性说明
我们要显示图像的 CameraFeed 的 ID。
bool camera_is_active = false
🔗
给予访问 CameraFeed 的活动属性的便利属性。
我们要访问 CameraFeed 中的哪个图像,如果相机图像被分割成 Y 和 CbCr 分量,这一点很重要。