self:set_transmittance_bias

Client

Sets the transmittance bias of the spot light used for subsurface scattering


Syntax

local status = self:set_transmittance_bias(
    bias
)

Parameters

TypeNameDescription
floatbiasTransmittance bias value to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

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

entity:set_transmittance_bias(1.0)

On this page