Commit Graph

8 Commits

Author SHA1 Message Date
Doyle Thai 339ae38b38 Simplify shaders, enable coloring of primitives 2016-11-12 01:17:30 +11:00
Doyle Thai 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
Doyle Thai ea50aeb44e Allow color modulation of sprites, refactor renderer init 2016-07-09 16:08:03 +10:00
Doyle Thai 68c53dad0a Switch to sprite renderer 2016-06-09 15:49:03 +10:00
Doyle Thai 6f7f9fa50a Sprite uses unique vao for rendering
Remove notation of "m" in member variables.
2016-06-08 01:35:00 +10:00
Doyle Thai 761609e1f9 Add sprite functionality, doesn't render yet 2016-06-07 23:54:14 +10:00
Doyle Thai 540b871c58 Add camera linear rotation 2016-06-03 17:05:28 +10:00
Doyle Thai 04e9f7bf85 Initialise repo 2016-06-03 15:07:40 +10:00