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

TypeNameDescription
floatsizeCurrent pancake size value

Examples

Get the shadow pancake size of a directional light
local entity = light.directional.create()

core.engine.print("info", "Shadow Pancake Size:", entity:get_shadow_pancake_size())

On this page