import hardcorepawn.fog.*; fog myFog; float nearDist; float farDist; color fogColor; void setup() { size(200,200,P3D); myFog=new fog(this); nearDist=150; farDist=500; myFog.setupFog(nearDist,farDist); fogColor=color(64,128,256); myFog.setColor(fogColor); } void draw() { background(fogColor); beginShape(QUADS); vertex(20,20,0); vertex(180,20,-100); vertex(180,180,-100); vertex(20,180,0); endShape(); myFog.doFog(); }