So basically i store 6 shadowmap mvp matrices ( each representing a different view direction (FRONT,BACK,LEFT,RIGHT,BOTTOM,TOP))
I basically use the formula like this:(model *view) *projection and pass this to shader
However i end up with these matrices
-1 0 0 135.957 0 1 0 -255.867 0 0 -1 331.663 0 0 0 1
1 0 0 -135.957 0 1 0 -255.867 0 0 1 -331.663 0 0 0 1
0 0 -1 331.663 0 1 0 -255.867 1 0 0 -135.957 0 0 0 1 …