ofxBlur static shaddow

Hi,

to create a 2d shaddow effect, I am using ofxBlur.

But it doesn´t create a static shaddow. When the program runs for a few seconds, the shaddow gets round. How can I display a shaddow, which doesn´t change?

blur.begin(); ofSetColor(255); ofFill(); ofRect(100, 100, 100, 100); blur.end(); blur.draw();

Thanks for your help.

Hi,
I think this is because you draw at each frame, without clearing the background. The shadow becomes round because of the progressive superposition.

In the draw function, the program is clearing the background. But the shaddow looks different eachf frame.

void ofApp::draw(){
    blur.begin();
    ofClear(255, 255, 255);
    ofSetColor(255);
    ofFill();
    ofRect(100, 100, 100, 100);
    blur.end();

    blur.draw();
}