예제 #1
0
파일: FBO.java 프로젝트: zx-zheng/visShadow
 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);
 }
예제 #2
0
파일: FBO.java 프로젝트: zx-zheng/visShadow
 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++;
 }