17INLINE
void SparkleParticleRenderer::
18set_center_color(
const LColor& c) {
25INLINE
void SparkleParticleRenderer::
26set_edge_color(
const LColor& c) {
33INLINE
void SparkleParticleRenderer::
34set_life_scale(SparkleParticleRenderer::SparkleParticleLifeScale ls) {
41INLINE
void SparkleParticleRenderer::
42set_birth_radius(PN_stdfloat radius) {
43 _birth_radius = radius;
49INLINE
void SparkleParticleRenderer::
50set_death_radius(PN_stdfloat radius) {
51 _death_radius = radius;
57INLINE
const LColor& SparkleParticleRenderer::
58get_center_color()
const {
65INLINE
const LColor& SparkleParticleRenderer::
66get_edge_color()
const {
73INLINE SparkleParticleRenderer::SparkleParticleLifeScale SparkleParticleRenderer::
74get_life_scale()
const {
81INLINE PN_stdfloat SparkleParticleRenderer::
82get_birth_radius()
const {
89INLINE PN_stdfloat SparkleParticleRenderer::
90get_death_radius()
const {
97INLINE PN_stdfloat SparkleParticleRenderer::
99 if (_life_scale == SP_NO_SCALE)
100 return _birth_radius;
102 PN_stdfloat s_x = CUBIC_T(bp->get_parameterized_age());
103 return LERP(s_x, _birth_radius, _death_radius);
An individual, physically-modelable particle abstract base class.