I’ve started writing my own glsl shaders haven’t really had any problems until now. I’m tryng to use a vertex attribute array, which is pretty easy in c++. You just create an array and have a pointer point to it using:
glVertexAttribPointer()
The problem is that this method accepts a pointer to an array as one of it’s arguments… Java doesn’t use pointers. So how do I pass an array into my shader? I’m creating a shader that accepts multiple vertex attribute arrays that contain keyframe information for morphing my object.
TIA
Stephen.