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

TypeNameDescription
floatsizePancake size value to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set shadow pancake size on a directional light
local entity = light.directional.create()

entity:set_shadow_pancake_size(20.0)

On this page