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...
LightOccluder2D
继承: Node2D < CanvasItem < Node < Object
遮挡由 Light2D 投射的光线,投射阴影。
描述
遮挡 Light2D 投射的灯光,投射阴影。为了计算阴影,必须为 LightOccluder2D 提供 OccluderPolygon2D。
教程
属性
|
||
|
属性说明
OccluderPolygon2D occluder 🔗
void set_occluder_polygon(value: OccluderPolygon2D)
OccluderPolygon2D get_occluder_polygon()
用于计算阴影的 OccluderPolygon2D。
LightOccluder2D 的遮挡器光照掩码。LightOccluder2D 将仅从具有相同光照掩码的 Light2D 投射阴影。
如果启用,该遮挡器将成为实时生成的带符号距离场的一部分,可被用于自定义着色器中。