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 投射陰影。
If enabled, the occluder will be part of a real-time generated signed distance field that can be used in custom shaders.