Hello,
I have a particles system and the idea is that where there is a higher density of particles their color is brighter. My particles are stored in a vbo and I thought of drawing them with additive blending mode but the blending mode doesn’t seem to work, I’m certainly missing something. Here is how I draw my particles (I’m using ofxFX):
void testApp::update(){
particlesSystem.update();
FXObject.begin();
ofEnableBlendMode(OF_BLENDMODE_ADD);
particlesSystem.draw();
ofDisableBlendMode();
FXObject.end();
FXObject.update();
}
void testApp::draw(){
FXObject.draw(0,0);
}
void ParticlesSystem::draw(){
vbo.draw(GL_POINTS, 0, NUM_PARTICLES);
}