self:set_shadow_opacity
Client
Sets the shadow opacity of the area light
Syntax
local status = self:set_shadow_opacity(
opacity
)Parameters
| Type | Name | Description |
|---|---|---|
float | opacity | Shadow opacity to apply, from 0.0 to 1.0 |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = light.area.create()
entity:set_shadow_opacity(1.0)