1
Gdx.gl20.glActiveTexture(GL20.GL_TEXTURE0);
texture.bind();

I am able to bind 1 texture like this... But if I cant figure out how to bind more textures.

P.T.
  • 24,557
  • 7
  • 64
  • 95
Lerchmo
  • 189
  • 1
  • 12

1 Answers1

2

Use glActiveTexture(GL20.GL_TEXTURE1) and bind.

tests/gdx-tests/src/com/badlogic/gdx/tests/ShaderMultitextureTest.java

Gdx.gl20.glActiveTexture(GL20.GL_TEXTURE1);
texture2.bind();
Kazuki Sakamoto
  • 13,929
  • 2
  • 34
  • 96