17 INLINE
void SparkleParticleRenderer::
18 set_center_color(
const LColor& c) {
25 INLINE
void SparkleParticleRenderer::
26 set_edge_color(
const LColor& c) {
33 INLINE
void SparkleParticleRenderer::
34 set_life_scale(SparkleParticleRenderer::SparkleParticleLifeScale ls) {
41 INLINE
void SparkleParticleRenderer::
42 set_birth_radius(PN_stdfloat radius) {
43 _birth_radius = radius;
49 INLINE
void SparkleParticleRenderer::
50 set_death_radius(PN_stdfloat radius) {
51 _death_radius = radius;
57 INLINE
const LColor& SparkleParticleRenderer::
58 get_center_color()
const {
65 INLINE
const LColor& SparkleParticleRenderer::
66 get_edge_color()
const {
73 INLINE SparkleParticleRenderer::SparkleParticleLifeScale SparkleParticleRenderer::
74 get_life_scale()
const {
81 INLINE PN_stdfloat SparkleParticleRenderer::
82 get_birth_radius()
const {
89 INLINE PN_stdfloat SparkleParticleRenderer::
90 get_death_radius()
const {
97 INLINE 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.