Exemplo n.º 1
0
 public void attachDepth(GL2GL3 gl, TextureBase tex) {
   gl.glBindFramebuffer(GL2.GL_FRAMEBUFFER, fboid);
   gl.glFramebufferTextureARB(GL2.GL_FRAMEBUFFER, GL2.GL_DEPTH_ATTACHMENT, tex.getTexID(), 0);
   gl.glEnable(GL2.GL_DEPTH_TEST);
 }
Exemplo n.º 2
0
 public void attachTexture(GL2GL3 gl, TexBindSet tbs) {
   gl.glBindFramebuffer(GL2.GL_FRAMEBUFFER, fboid);
   gl.glFramebufferTextureARB(
       GL2.GL_FRAMEBUFFER, COLOR_ATTACHMENTS[attachcount], tbs.tex.getTexID(), 0);
   attachcount++;
 }