GPU Particles
self:set_scale_curve
ClientScales the particle over its lifetime
Syntax
local status = self:set_scale_curve(
from,
to
)The curve multiplies the SCALE parameter.
- See
particle.gpu.paramto set the base scale.
Parameters
| Type | Name | Description |
|---|---|---|
float | from | Scale multiplier at the start of the particle lifetime, at least 0 |
float | to | Scale multiplier at the end of the particle lifetime, at least 0 |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = particle.gpu.create()
entity:set_scale_curve(1, 0)