Commit Graph

4 Commits

Author SHA1 Message Date
3894d33485 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.
2016-09-23 18:02:53 +10:00
ea50aeb44e Allow color modulation of sprites, refactor renderer init 2016-07-09 16:08:03 +10:00
6f7f9fa50a Sprite uses unique vao for rendering
Remove notation of "m" in member variables.
2016-06-08 01:35:00 +10:00
761609e1f9 Add sprite functionality, doesn't render yet 2016-06-07 23:54:14 +10:00