Shader vertex = new Shader(new File("shaders/example.vert"), Type.VERTEX);
Shader fragment1 = new Shader(new File("shaders/example1.frag"), Type.FRAGMENT);
Shader fragment2 = new Shader(new File("shaders/example2.frag"), Type.FRAGMENT);
shader1 = new ShaderProgram(vertex, fragment1);
shader2 = new ShaderProgram(vertex, fragment2);
try {
frameBuffer = new FrameBuffer(128, 128, DEFAULT_CAMERA);
} catch (Exception ex) {
Logger.getLogger(ShaderDemo.class.getName()).log(Level.SEVERE, null, ex);
}