Fix rotation on render, change rendering code

Premultiply transformation matrix onto vertices before sending onto GPU to
preserve transformation properties of entities before being batched into
a general group. This removes the model matrix from the shader pipeline- instead
in rendering code we deal in world space (which works out to be more intuitive).
Only in the last step in GLSL we convert back to normalised coordinates.
This commit is contained in:
2016-09-23 18:02:53 +10:00
parent 88ce511f2b
commit 3894d33485
7 changed files with 143 additions and 178 deletions
Binary file not shown.