← Back

ofxFog

github.com/kalwalt/ofxFog · @kalwalt
OF 0.7 Graphics

openFrameworks addon to add openGL fog to a scene

6 2 Last commit 14y ago Created 14y ago

Branches ahead of master

These branches have commits not yet on master — could be unmerged fixes or work in progress worth a look.

ofxFog-develop 3 commits ahead · last commit 14y ago

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);

Get this addon

HTTPS
SSH