Commit graph

141 commits

Author SHA1 Message Date
Joel Middendorf
fe924f0fe6 Reset num vertices on draw scene 2017-11-25 00:24:17 -05:00
Joel Middendorf
aae5ebd4b3 Cleanup 2017-11-24 22:36:21 -05:00
Joel Middendorf
105e8c6f54 Make sure all functions return 2017-11-24 22:12:08 -05:00
Joel Middendorf
081f5c8b1b Disable speed hack 2017-11-24 19:33:50 -05:00
Joel Middendorf
5b4a95a108 Missing texture fix 2017-11-24 13:01:22 -05:00
Joel Middendorf
25988d16bb Skybox fix -- wrong active texture 2017-11-24 12:54:24 -05:00
Joel Middendorf
fdab76202c set depth test of draw scene 2017-11-24 00:47:11 -05:00
Joel Middendorf
01c5c9c73a Render state changed on loadsync 2017-11-23 14:58:33 -05:00
Joel Middendorf
0a816587c2 light from normals only 2017-11-23 04:58:14 -05:00
Joel Middendorf
2469bed8a1 Apha transparency for Mario HUD 2017-11-23 02:02:25 -05:00
Joel Middendorf
568f39c61b Fix texrect width 2017-11-23 00:20:13 -05:00
Joel Middendorf
d871889f63 uncomment @videoLog calls and just comment console.log in the @videoLog function 2017-11-22 22:59:15 -05:00
Joel Middendorf
1c3463ab47 Fix Pop Matrix which fixes in-game text 2017-11-22 21:26:38 -05:00
Joel Middendorf
ae7b210959 return of texrexts; support non-power-of-2 textures 2017-11-18 19:03:24 -05:00
Joel Middendorf
a711919a29 use default blend for fog modes until we support fog 2017-11-17 03:53:16 -05:00
Joel Middendorf
2a93aefe63 zDepth fixes 2017-11-17 01:50:00 -05:00
Joel Middendorf
aba1dea53e Fix rendering issues 2017-11-15 22:39:38 -05:00
Joel Middendorf
cc0bd0a68e Optimize draw calls by detecting state changes necessitating immediate draws 2017-11-15 20:50:41 -05:00
Joel Middendorf
6806d994ee Draw tris immediately..fixes a lot of graphics problems 2017-11-14 10:05:32 -05:00
Joel Middendorf
89a5ed584f drawing scene more often as test 2017-11-14 08:17:59 -05:00
Joel Middendorf
b1c9e33638 ClearColor fixes 2017-11-13 17:15:36 -05:00
Joel Middendorf
6b38d35668 ZDepth (WIP) 2017-11-13 08:16:23 -05:00
Joel Middendorf
bae1dd5d4c Fix: subarray end too large 2017-11-12 23:41:58 -05:00
Joel Middendorf
f0c433b155 Cleanup unnecessary code 2017-11-12 23:04:21 -05:00
Joel Middendorf
5125994bf0 texture wrap fixes 2017-11-11 18:46:47 -05:00
Joel Middendorf
24e6632ef9 Fix transparency in RGBA16 textures; Mirror textures 2017-11-11 17:10:56 -05:00
Joel Middendorf
9aa707e072 Bump to 0.1.26 2017-11-10 20:11:05 -05:00
Joel Middendorf
7a307e6acd Merge branch 'master' of github.com:schibo/1964js 2017-11-10 20:10:33 -05:00
Joel Middendorf
1c9472ecdd model lighting 2017-11-10 20:01:03 -05:00
Joel Middendorf
08938aec71 light color fix 2017-11-10 00:19:43 -05:00
Joel Middendorf
a396b2d4c8 Optimization so matrices are reused instead of reallocated 2017-11-09 22:53:51 -05:00
Joel Middendorf
6e2c00b21d Lighting improvements 2017-11-09 14:21:25 -05:00
Joel Middendorf
fe28b94fce Geometry mode fixes 2017-11-09 09:51:33 -05:00
Joel Middendorf
eaf65e9c6e Lighting 2017-11-08 15:25:11 -05:00
Joel Middendorf
15c9fab1bb Lighting 2017-11-08 10:59:21 -05:00
Joel Middendorf
a9aab72248 Disable lighting for now; fix timing of run loop 2017-11-07 22:21:36 -05:00
Joel Middendorf
616c9320c9 Lighting improvements 2017-11-07 20:59:41 -05:00
Joel Middendorf
f1d828df1c lighting 2017-11-06 07:45:30 -05:00
Joel Middendorf
52fd662aa7 Lighting 2017-11-06 06:30:06 -05:00
Joel Middendorf
51cae8f886 geometry modes for flat primColor and lighting (WIP) 2017-11-06 02:43:53 -05:00
Joel Middendorf
ecd4675962 Parse geometry mode data 2017-11-06 01:40:48 -05:00
Joel Middendorf
31d9f88877 cull face 2017-11-06 01:14:07 -05:00
Joel Middendorf
cadb828e4a More blend modes 2017-11-05 21:57:09 -05:00
Joel Middendorf
720679fa3c alpha test in fragment shader 2017-11-05 21:26:50 -05:00
Joel Middendorf
a562dc88bf Shader improvements 2017-11-05 20:13:03 -05:00
Joel Middendorf
b85bef4004 Color Combiner improvements 2017-11-05 15:12:09 -05:00
Joel Middendorf
2bcb5f1bb6 More blender modes 2017-11-05 05:08:08 -05:00
Joel Middendorf
6bd729932b Improved shaders 2017-11-05 04:15:49 -05:00
Joel Middendorf
602ff694fe Shader improvements 2017-11-04 11:48:00 -04:00
Joel Middendorf
bc1c80f439 embed shaders in html to prevent caching old external shader files 2017-11-03 23:30:14 -04:00