self:get_shadow_pancake_size
Client
Retrieves the shadow pancake size of the directional light, which reduces peter-panning on shadow edges by squashing the shadow frustum
Syntax
local size = self:get_shadow_pancake_size()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
float | size | Current pancake size value |
Examples
local entity = light.directional.create()
core.engine.print("info", "Shadow Pancake Size:", entity:get_shadow_pancake_size())