Commit graph

15071 commits

Author SHA1 Message Date
kainage
ed6ca0ee3e Reset alpha to correct value after flash effect complete 2020-11-09 20:48:04 -08:00
kainage
6861a93a82 Allow setting alpha for 2D camera flash effect
* Allow the overriding of `this.alpha` value for the camera flash effect
2020-09-17 21:55:01 -07:00
Richard Davey
af27284202 Update CHANGELOG-v3.50.md 2020-09-17 18:08:29 +01:00
Richard Davey
5b8e490c7e Flush during render so we can have models with more vertices than the batch allows 2020-09-17 18:08:25 +01:00
Richard Davey
5ff9894925 MeshCamera now supports orbit and pan modes 2020-09-17 18:08:07 +01:00
Richard Davey
d40f99c332 Vertor3.addScale is a new method that will add the given vector and multiply it in the process. 2020-09-17 18:07:54 +01:00
Richard Davey
8af35be8f1 Make defaults match JSDocs 2020-09-17 18:06:59 +01:00
Richard Davey
6ce58ed73b Let them define the orientation 2020-09-17 10:08:15 +01:00
Richard Davey
87ed734475 Easier iteration 2020-09-17 10:08:07 +01:00
Richard Davey
f853a2be70 Use the projected coordinates 2020-09-17 10:07:56 +01:00
Richard Davey
38958d025a We need the z axis 2020-09-17 10:07:19 +01:00
Richard Davey
8ca1730cc1 Remove log 2020-09-16 17:49:00 +01:00
Richard Davey
c5412df09e Fix docs 2020-09-16 17:48:56 +01:00
Richard Davey
8085952507 Expose MeshCamera 2020-09-16 17:35:54 +01:00
Richard Davey
c306229478 Final JSDocs 2020-09-16 17:33:17 +01:00
Richard Davey
303f09b23e Final JSDocs 2020-09-16 17:25:42 +01:00
Richard Davey
1d0b5cc6a9 Added Size component 2020-09-16 17:15:37 +01:00
Richard Davey
fcf0867843 Final JSDocs 2020-09-16 17:15:25 +01:00
Richard Davey
a38166ce2b Now allows a texture per model, not mesh 2020-09-16 16:39:06 +01:00
Richard Davey
fcd1cf96b8 Added dirty handling, drawDebug and destroy 2020-09-16 16:38:53 +01:00
Richard Davey
851775ae19 New MeshCamera class 2020-09-16 16:38:39 +01:00
Richard Davey
8ff008b740 Removed un-used components, refactored method names and added MeshCamera 2020-09-16 16:38:32 +01:00
Richard Davey
da6a300474 Iterates and renders the new models array 2020-09-16 13:51:39 +01:00
Richard Davey
4f7442ee96 Moving all dependencies to the Model object 2020-09-16 13:51:30 +01:00
Richard Davey
113ae646e2 Updated path ref 2020-09-16 13:50:44 +01:00
Richard Davey
a96d380933 Created new Geom.Mesh namespace for all of the Mesh related functions and classes 2020-09-16 13:50:36 +01:00
Richard Davey
b08015ac74 Update CHANGELOG-v3.50.md 2020-09-16 09:50:27 +01:00
Richard Davey
45412157c2 Added JSDocs 2020-09-16 09:50:24 +01:00
Richard Davey
cfcfabff26 Update CHANGELOG-v3.50.md 2020-09-15 18:09:43 +01:00
Richard Davey
b74928b2f8 Added hideCCW, addOBJ, addModel, sortByDepth, rotateX, rotateY, rotateZ, depthSort, addVertex and addFace methods. 2020-09-15 18:09:19 +01:00
Richard Davey
431eb69b42 Much cleaner rendering function, skipping invalid faces 2020-09-15 18:07:51 +01:00
Richard Davey
3e133c900a New method signature order 2020-09-15 18:07:24 +01:00
Richard Davey
a2a199818e Added contains and isCounterClockwise methods and depth property 2020-09-15 18:07:14 +01:00
Richard Davey
229d27dc9e Updated docs and added load method 2020-09-15 18:06:48 +01:00
Richard Davey
dd28a11c93 Loader.OBJFile is a new File Loader type that can load Wavefront OBJ files, which are then parsed and stored in the OBJ Cache. 2020-09-15 18:06:31 +01:00
Richard Davey
a0b47e8c5f Geom.ParseObj is a new function that will parse a Wavefront OBJ file into model data that can be consumed by the Mesh Game Object. 2020-09-15 18:05:47 +01:00
Richard Davey
bd2c56e306 Typo fix 2020-09-15 18:04:26 +01:00
Richard Davey
8ff1c7ca50 Update CHANGELOG-v3.50.md 2020-09-15 12:02:45 +01:00
Richard Davey
d8a8aa8448 Added clearVertices and renamed to addVertices so you can append on more verts post-creation 2020-09-15 11:57:44 +01:00
Richard Davey
b763fa0f18 The Mesh now renders by iterating through the Faces array, not the vertices. This allows you to use Array methods such as BringToTop to reposition a Face, thus changing the drawing order without having to repopulate all of the vertices. 2020-09-15 11:57:22 +01:00
Richard Davey
5e5b8c0938 The WebGLPipeline.shouldFlush method now accepts an optional parameter amount. If given, it will return true if when the amount is added to the vertex count it will exceed the vertex capacity. The Multi Pipeline has been updated to now use this method instead of performing the comparison multiple times itself. 2020-09-15 11:54:12 +01:00
Richard Davey
36e675fa42 Update CHANGELOG-v3.50.md 2020-09-15 10:37:22 +01:00
Richard Davey
08b4597b72 Improved JSDocs 2020-09-15 10:37:19 +01:00
Richard Davey
99c12540f7 Utils.Array.Matrix.Translate is a new function that will translate an Array Matrix by horizontally and vertically by the given amounts. 2020-09-15 10:35:53 +01:00
Richard Davey
ece3043908 Deps update 2020-09-15 09:32:43 +01:00
Richard Davey
92982d810b Added ability to get InCenter. translate and rotate Face 2020-09-14 17:35:06 +01:00
Richard Davey
52d5b00fe5 Added setPosition and translate methods 2020-09-14 17:34:47 +01:00
Richard Davey
f97042193f Beta 7 tag 2020-09-14 15:35:00 +01:00
Richard Davey
99d1c76b84 Update CHANGELOG-v3.50.md 2020-09-14 15:34:01 +01:00
Richard Davey
6a966e3f3b Removed interpolationPercentage parameter from all render methods, as it has never been used. 2020-09-14 15:33:58 +01:00