openFrameworks addon to add openGL fog to a scene
Branches ahead of master
These branches have commits not yet on master — could be unmerged fixes or work in progress worth a look.
README
ofxFog
openFrameworks addon to add openGL fog to a scene.
Tested in OF 0072. This addon could be added to the OF core lib.
How to use
in testApp.h:
ofxFog fog;
ofFloatColor fogColor;
in testApp.cpp:
in void setup():
fog.setup();
fogColor.set(0.5f, 0.6f, 0.65f);
///add your setters here
fog.setfogColor(fogColor);
///.....and so on...
in void draw():
fog.enable();
ofBox(10);
fog.disable();
ofDrawBitmapString("I'm a string not coloured by the fog!", 10,720);
ofxAddons