self:set_shadow_pancake_size
Client
Sets the shadow pancake size of the directional light, which reduces peter-panning on shadow edges by squashing the shadow frustum
Syntax
local status = self:set_shadow_pancake_size(
size
)Parameters
| Type | Name | Description |
|---|---|---|
float | size | Pancake size value to apply |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = light.directional.create()
entity:set_shadow_pancake_size(20.0)