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
| Type | Name | Description |
|---|---|---|
float | bias | Transmittance bias value to apply |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = light.spot.create()
entity:set_transmittance_bias(1.0)