self:set_shadow_bias

Client

Sets the shadow bias of the spot light


Syntax

local status = self:set_shadow_bias(
    bias
)

Parameters

TypeNameDescription
floatbiasShadow bias value to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Apply shadow bias on a spot light
local entity = light.spot.create()

entity:set_shadow_bias(1.0)

On this page