self:set_distance_fade_shadow
Client
Sets the distance at which shadow casting begins to fade on the point light
Syntax
local status = self:set_distance_fade_shadow(
distance
)Parameters
| Type | Name | Description |
|---|---|---|
float | distance | Shadow fade begin distance in world units |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = light.point.create()
entity:set_distance_fade_shadow(1.0)