self:get_shadow_opacity

Client

Retrieves the shadow opacity of the spot light


Syntax

local opacity = self:get_shadow_opacity()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatopacityCurrent shadow opacity, from 0.0 to 1.0

Examples

Get shadow opacity of a spot light
local entity = light.spot.create()

core.engine.print("info", "Shadow Opacity:", entity:get_shadow_opacity())

On this page