self:scale_local

Client

Scales the directional light in local space by the given factor


Syntax

local status = self:scale_local(
    scale
)

Parameters

TypeNameDescription
vector3scaleScale factor to apply in local space as {x, y, z}

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Scale a directional light along its local X axis
local entity = light.directional.create()

entity:scale_local({2, 1, 1})

On this page