public void setup() { frameRate(FRAME_RATE); supervisor = new PostFXSupervisor(this); brightPass = new BrightPass(this, 0.3f); blurPass = new BlurPass(this, 40, 12f, false); sobelPass = new SobelPass(this); fx = new PostFX(this); fx.preload(VignettePass.class); canvas = createGraphics(width, height, P3D); // load test image lenna = this.loadImage("data/Lenna.png"); hdrImage = this.loadImage("data/hdr.jpg"); // initialise pass results passResult = createGraphics(width, height, P2D); }