I am using lwjgl with joml to make a voxel engine (mainly for infinity and destruction). I have experience in opengl programming in java using lwjgl but am new in the instancing
There is a SimplexNoise class in JOML. How can I use it to get transform values for the cubes?
After getting the transform values, they must be stored somewhere. According to me it should be an array of model matrices. But Matrix4f returns a lot of errors and MatrixStackf does not provide Matrix array calculations.
Now, how will I get my matrices to a buffer for shader use?
I need a simplified VAO/VBO initialization/binding/attrib code for the instanced arrays.
Thanks in advance