Skip to content

SimplePointShadowLight

穿透点阴影源。通过 World:CreateUnit("SimplePointShadowLight", {...}) 创建,字段属性可直接读写。

概览

SimplePointShadowLight 是暗调点状自发光体,用较深颜色呈现球状装饰光效,不会照亮周围物体。

继承自 SimpleLight;可通过 World:CreateUnit("SimplePointShadowLight", ...) 创建;返回单位数组

属性

名称类型默认值说明
ColorColor-阴影源颜色。
AttenuationEnableBool-是否启用慢速衰减。
TransparencyFloat-光源模型的透明度,值越小越透明(阴影越暗)。取值范围 [0.0, 1.0]。