How many textures can I assign to one shader/material?

Is there a limit of how many textures can be assigned to one shader/material?

it depends on the hardware and you can know it by directly fetching it from opengl with lwjgl

GL11.glGetInteger(GL20.GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS)

Pretty sure jME3 limits it to 16 internally. This is the baseline for OpenGL2.

ok. But does that mean that I can use the full 16 textures on any OpenGL2 compatible hardware?

@entrusc said:
ok. But does that mean that I can use the full 16 textures on any OpenGL2 compatible hardware?

Yes