self:get_shadow_opacity
Client
Retrieves the shadow opacity of the directional light
Syntax
local opacity = self:get_shadow_opacity()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
float | opacity | Current shadow opacity, from 0.0 to 1.0 |
Examples
local entity = light.directional.create()
core.engine.print("info", "Shadow Opacity:", entity:get_shadow_opacity())