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...
CompressedTexture3D
继承: Texture3D < Texture < Resource < RefCounted < Object
三维纹理,可选择压缩。
描述
CompressedTexture3D 是 ImageTexture3D 的 VRAM 压缩对应物。CompressedTexture3D 文件的文件扩展名为 .ctex3d
。这种文件格式是 Godot 内部使用的;它是通过导入系统导入其他图像格式创建的。
CompressedTexture3D 使用 VRAM 压缩,这可以在渲染纹理时减少 GPU 的内存使用量。这也缩短了加载时间,因为与使用无损压缩的纹理相比,VRAM 压缩的纹理加载速度更快。VRAM 压缩会表现出明显的伪影,并且它旨在用于 3D 渲染,而不是 2D。
有关 3D 纹理的一般描述,请参阅 Texture3D。
属性
|
方法
属性说明
该 CompressedTexture3D 的文件路径,指向 .ctex3d
文件。
方法说明
从指定的路径 path
加载纹理。