27 return _render_node_path;
33 INLINE
void BaseParticleRenderer::
34 set_alpha_mode(BaseParticleRenderer::ParticleRendererAlphaMode am) {
35 update_alpha_mode(am);
42 INLINE BaseParticleRenderer::ParticleRendererAlphaMode BaseParticleRenderer::
43 get_alpha_mode()
const {
67 set_color_blend_mode(ColorBlendAttrib::Mode bm, ColorBlendAttrib::Operand oa, ColorBlendAttrib::Operand ob) {
69 if(bm == ColorBlendAttrib::M_add || bm == ColorBlendAttrib::M_subtract || bm == ColorBlendAttrib::M_inv_subtract) {
70 ra = ColorBlendAttrib::make(bm,oa,ob);
72 ra = ColorBlendAttrib::make(bm);
75 _render_node->set_attrib(ra);
90 INLINE PN_stdfloat BaseParticleRenderer::
94 return 1.0f - bp->get_parameterized_age();
97 return bp->get_parameterized_age();
100 return 2.0 * std::min(bp->get_parameterized_age(),
101 1.0f - bp->get_parameterized_age());
GeomNode * get_render_node() const
Query the geomnode pointer.
This is the base class for a number of render attributes (other than transform) that may be set on sc...
void set_color_blend_mode(ColorBlendAttrib::Mode bm, ColorBlendAttrib::Operand oa=ColorBlendAttrib::O_zero, ColorBlendAttrib::Operand ob=ColorBlendAttrib::O_zero)
sets the ColorBlendAttrib on the _render_node
void set_user_alpha(PN_stdfloat ua)
sets alpha for "user" alpha mode
bool get_ignore_scale() const
Returns the "ignore scale" flag.
PN_stdfloat get_user_alpha() const
gets alpha for "user" alpha mode
An individual, physically-modelable particle abstract base class.
NodePath get_render_node_path() const
Query the geomnode pointer.
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
A node that holds Geom objects, renderable pieces of geometry.