self:set_shadow_opacity

Client

Sets the shadow opacity of the point light


Syntax

local status = self:set_shadow_opacity(
    opacity
)

Parameters

TypeNameDescription
floatopacityShadow opacity to apply, from 0.0 to 1.0

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Apply shadow opacity on a point light
local entity = light.point.create()

entity:set_shadow_opacity(1.0)

On this page