mostly renaming and reformatting
clearer creation of attribute buffers; optimization of static uniforms (orientation, material)