Commit Graph

34 Commits

Author SHA1 Message Date
Tim Anema
d8ad342739
fixing light in the main list 2021-11-08 16:36:44 -05:00
jiangzhi.xie
9d48adb46b Fix colors 2019-09-08 12:44:10 +08:00
leokaplan
85d4fbbba7 initial port 2016-02-03 15:45:22 +01:00
Rain Gloom
44fa3d4651 Fixed a typo in complex.lua 2015-07-25 01:02:03 +02:00
Tim Anema
7852da20d6 scaled circles and fixed complex refractions example 2015-02-18 16:20:21 -05:00
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
4e5158601a optimizing range checking now update is required 2014-12-21 13:14:46 -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
0b3cc0e4a7 fixed example of chromatic abberation in complex 2014-12-05 15:46:05 -05:00
Tim Anema
ada9857394 added in initial animations 2014-12-04 11:42:28 -05:00
Tim Anema
c0a80da546 made polygons moveable 2014-12-02 21:26:46 -05:00
Tim Anema
ec19b3cadd added a normal map to all bodies now so drawing shine is done with just the normal shading now 2014-12-02 10:05:52 -05:00
Tim Anema
8fee299900 just cleaning up some code 2014-12-01 20:41:09 -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
9c81c71f89 just a few touchups before bed 2014-11-29 23:51:44 -05:00
Tim Anema
bbcd20a27e colored shadows almost functional again 2014-11-29 23:20:02 -05:00
Tim Anema
ac5b9afa16 made the normal shading reflect the shadow calculations a bit better and isolated the examples to one directory 2014-11-28 11:14:53 -05:00
Tim Anema
7db34a4a02 made better shadow body calculations so that the z coordinate of the light effects the cast light 2014-11-28 10:20:00 -05:00
Tim Anema
b768c5479a fixed the light drawing with translation and scaling 2014-10-28 20:47:46 -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
Tim Anema
302bd42d5f minimized methods again 2014-10-26 15:35:53 -04:00
Tim Anema
e9a98dbcee made the postshader be more easily extendable 2014-10-23 21:35:35 -04:00
Tim Anema
537ff2522c converted the complex example to use the proper way of transformation 2014-10-23 08:25:12 -04:00
Tim Anema
22c45f7bac trying out some new postshaders from mari0, fixed a couple bugs 2014-10-08 08:55:05 -04:00
Tim Anema
702de1389a refactored post shader to be part of the light world but still able to use it on its own, took out globals, and made adding and removing effects independant from the draw calls 2014-10-06 17:27:41 -04:00
Tim Anema
5e0320c4bf fixe a bug in new image bodies 2014-10-06 09:31:14 -04:00
Tim Anema
3d15d0832e singled out the drawing into one function with background and foreground callbacks, this will draw the refraction and reflection without the post shader 2014-10-02 20:32:31 -04:00
Tim Anema
6739da8423 isolated the update calls again in hopes to fix scaling issues, still havnt got there yet, I am thinking there is some issue with the translation at scale 2014-10-01 09:03:59 -04:00
Tim Anema
9579dc0b15 refactor to update only the elements that are being drawn 2014-09-27 17:18:54 -04:00
Tim Anema
9dd4e53119 light world no longer has any more globals 2014-09-27 13:46:46 -04:00
Tim Anema
f2b9d62efe finished refactor so that there are no more globals to the light world 2014-09-26 13:38:55 -04:00
Tim Anema
d58fd39f7f refactoring to be a bit more sane and so I can understand the codebase a bit better 2014-09-26 12:48:46 -04:00
Marcus Ihde
88b5014326 Add example browser. 2014-04-08 19:45:21 +02:00