fix particle color

This commit is contained in:
David Rose 2009-01-09 04:06:42 +00:00
parent f86e9a8cd6
commit a1ce73a85c

View File

@ -16,6 +16,7 @@
#include "baseParticleRenderer.h" #include "baseParticleRenderer.h"
#include "transparencyAttrib.h" #include "transparencyAttrib.h"
#include "colorAttrib.h"
#include "compassEffect.h" #include "compassEffect.h"
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
@ -140,7 +141,8 @@ update_alpha_mode(ParticleRendererAlphaMode am) {
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
void BaseParticleRenderer:: void BaseParticleRenderer::
enable_alpha() { enable_alpha() {
_render_state = RenderState::make(TransparencyAttrib::make(TransparencyAttrib::M_alpha)); _render_state = RenderState::make(TransparencyAttrib::make(TransparencyAttrib::M_alpha),
ColorAttrib::make_vertex());
} }
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
@ -150,5 +152,6 @@ enable_alpha() {
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
void BaseParticleRenderer:: void BaseParticleRenderer::
disable_alpha() { disable_alpha() {
_render_state = RenderState::make(TransparencyAttrib::make(TransparencyAttrib::M_none)); _render_state = RenderState::make(TransparencyAttrib::make(TransparencyAttrib::M_none),
ColorAttrib::make_vertex());
} }