Commit Graph

32 Commits

Author SHA1 Message Date
Tim Anema
691da848de added image stencils for objects so shadows are properly stenciled, and made it so that object that dont cast shadows have shadows cast over them. 2015-01-03 22:18:48 -05:00
Tim Anema
1026092cbd learned how to create class like things in lua finally so I took out other peoples code 2014-12-23 16:51:07 -05:00
Tim Anema
d3358b0455 set direction fix for lights 2014-12-21 16:00:06 -05:00
Tim Anema
3ad6703ef0 added back shadow blur default 2014-12-21 15:53:07 -05:00
Tim Anema
4e5158601a optimizing range checking now update is required 2014-12-21 13:14:46 -05:00
Tim Anema
3cafa72684 just a bit of a refactor that should be a bit of an optimizations because I wont be sending a buffer several time for no reason 2014-12-20 00:21:00 -05:00
Tim Anema
7fe549a01a optimizations to say the least
-cut out complicated light angle calulations and instead put in a arc
stencil
-stenciled the range of each light to optimize the shader drawing
-refactors postshaders to user proper love variables
-minimized amount of canvases
-added better functionality to my canvas util
-refactored blurring to be in one place
2014-12-19 22:54:29 -05:00
Tim Anema
12b2bd8b32 added back in some options in the short example to give a better refraction example 2014-12-11 21:58:18 -05:00
Tim Anema
29436e4207 renamed a variable to be more apltly named 2014-12-06 12:33:00 -05:00
Tim Anema
ab5023404c took out inital setting for glow blur because it make my short examples look too fuzzy 2014-12-06 12:31:22 -05:00
Tim Anema
1bbc80f04d added back in shadow blur 2014-12-05 17:50:33 -05:00
Tim Anema
ada9857394 added in initial animations 2014-12-04 11:42:28 -05:00
Tim Anema
8d40785844 added in examples for common cameras 2014-12-03 19:22:45 -05:00
Tim Anema
207840c2cc forgot one check 2014-12-03 14:09:42 -05:00
Tim Anema
d02bc54b05 added in checking to see if the shadow bodies should be drawn, if they are within the screen and within range of the light 2014-12-03 14:08:44 -05:00
Tim Anema
8fee299900 just cleaning up some code 2014-12-01 20:41:09 -05:00
Tim Anema
b759a0670a just a touch up 2014-11-30 16:00:22 -05:00
Tim Anema
5351b91168 no longer need two callback for drawing just one, which is nice 2014-11-30 15:24:58 -05:00
Tim Anema
66dd1b65f8 added comments to the new shader and got rid of bad methods 2014-11-30 15:11:22 -05:00
Tim Anema
9e59f9ffee colored shadows now work as expected with attenuated brightness and constant brightness not matter how many lights are present 2014-11-30 14:35:18 -05:00
Tim Anema
012a5481e9 image shadows look correct again 2014-11-29 23:08:29 -05:00
Tim Anema
117d908ad7 one light now works I need to figure out a way of doing multiple lights 2014-11-29 19:10:15 -05:00
Tim Anema
f56ef4a197 got the start of a shader that will do normal shading and shine at the same time, I will throw in a shadow map there too and it will do it all in one pass 2014-11-29 14:52:05 -05:00
Tim Anema
aa3675d7ad just renaming some things 2014-11-29 08:54:43 -05:00
Tim Anema
993e029a2f made circle shadow bodies use arc instead of circle, also optimized so they were not drawn if not neccessary 2014-11-28 16:56:05 -05:00
Tim Anema
42c699590d took out annoyance in naming 2014-11-28 10:55:43 -05:00
Tim Anema
1c5eb2c804 fixed the additive layer on the pixel shadow for translations 2014-11-06 20:03:00 -05:00
Tim Anema
3d4819cda4 added remove method to light world to facilitate removal of items 2014-11-03 17:54:15 -05:00
Tim Anema
e74c0d8961 fixed the light drawing with translation and scaling 2014-10-28 21:03:00 -04:00
Tim Anema
3f482ef0c6 fixed newRectangle bug where width and height were not set 2014-10-27 21:41:25 -04:00
Tim Anema
a1d6d33ab5 fixed spelling mistakes 2014-10-27 21:32:51 -04:00
Guard13007
290d39bcd5 load from anywhere 2014-10-27 12:20:56 -07:00