public void bindDepthTexture(int shaderProgram, String name, int slot) {
   gl.glActiveTexture(GL2.GL_TEXTURE0 + slot);
   gl.glBindTexture(GL2.GL_TEXTURE_2D, depthBuffer[0]);
   gl.glUniform1i(gl.glGetUniformLocation(shaderProgram, name), slot);
 }
 public void bindColorTexture(int shaderProgram, String name, int slot, int bufferIndex) {
   gl.glActiveTexture(GL2.GL_TEXTURE0 + slot);
   gl.glBindTexture(GL2.GL_TEXTURE_2D, colorBuffers[bufferIndex]);
   gl.glUniform1i(gl.glGetUniformLocation(shaderProgram, name), slot);
 }