Add support for intArray shader params

https://docs.google.com/file/d/0BwNvfRUx_gIUd2VQZk1ad1BWcTQ/edit?usp=sharing

Patch above allows to pass int[] parameters to shaders. I need it for palette selector in vmat, but would be great if it could appear in mainstream jme3. Only small ugliness is in Uniform.java, where I have decided to save memory and didnot create helper variable for IntBuffer, instead doing a lot of casting in setter. This means that people not using int arrays won’t see even a byte of wasted space in objects, at cost of fractionally slower performance when actually mutating them (which should not happen often anyway).

2 Likes

I’ve committed the patch.
I just added the implementation for Jogl and android renderers.

1 Like

Thanks. I have missed them, because I don’t have them in source path, so find references I used has not found them.

@abies said: Thanks. I have missed them, because I don't have them in source path, so find references I used has not found them.
no worries, that's why we review the patches ;)