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...
LightmapperRD
继承: Lightmapper < RefCounted < Object
内置的基于 GPU 的光照贴图器,与 LightmapGI 一起使用。
描述
LightmapperRD(“RD”代表 RenderingDevice)是基于 GPU 的内置光照贴图器,可与 LightmapGI 一起使用。在大多数专用 GPU 上,它可以比大多数基于 CPU 的光照贴图更快地烘焙光照贴图。LightmapperRD 使用计算着色器来烘焙光照贴图,因此它不需要安装 CUDA 或 OpenCL 库即可使用。
注意:该光照贴图器需要 GPU 支持 RenderingDevice 后端(Forward+ 和 Mobile 渲染器)。使用兼容渲染器时,烘焙过程将使用临时的 RenderingDevice。渲染预先烘焙好的光照贴图不需要支持 RenderingDevice。