Quote from: MichaelJPCT on April 24, 2024, 05:53:52 AMYou can't specify different integers (byte, short, integer, long, etc.) but you can set the overall integer precision (but this is device specific...).
another question , can there be uniform short array?
Quote from: MichaelJPCT on April 24, 2024, 05:53:52 AMFrom my experience this is very device specific. Modern devices usually have allow for more than 256 uniform values.
another question , can a uniform array be longer than 1024 elements?
int handle = GLES20.glGetUniformLocation(shader.getProgram(), "your_uniforms_name");
GLES20.glUniform1iv(handle, intArray.length, intArray, 0);
Page created in 0.018 seconds with 8 queries.