Commit graph

17898 commits

Author SHA1 Message Date
Richard Davey
70fff93516 Reset TD on loop 2022-11-06 22:00:56 +00:00
Richard Davey
0bb2b51ec6 Updated eslint and jsdoc 2022-11-06 21:37:28 +00:00
Richard Davey
60bc5ffb7d Update CHANGELOG-v3.60.md 2022-11-03 22:05:21 +00:00
Richard Davey
d7a15e92a6 Added activeBuffer and activeTextures check to avoid gl ops 2022-11-03 22:05:18 +00:00
Richard Davey
2d81a4a50e Reverting to forloop shader 2022-11-03 22:04:58 +00:00
Richard Davey
528e32a18a Reverting to forloop approach 2022-11-03 22:04:44 +00:00
Richard Davey
65e8dcbb6b Fix conditional check 2022-11-03 18:45:11 +00:00
Richard Davey
4e4218ea73 Add missing parameter 2022-11-03 18:45:03 +00:00
Richard Davey
6724cc6e91 texture can be a string, or a string in the properties block 2022-11-03 18:44:54 +00:00
Richard Davey
2a8250ef60 Modified return types to 'this' 2022-11-03 16:03:51 +00:00
Richard Davey
8ea3e09307 Removed global functions and tidied up 2022-11-03 15:22:50 +00:00
Richard Davey
2ca2bd5535 Added setStateFromEnd, setStateFromStart, reset and onRepeat 2022-11-03 15:22:37 +00:00
Richard Davey
4d4f3aeadc reset should return this 2022-11-03 15:22:10 +00:00
Richard Davey
755517f80b Removed init method - let's just call reset directly 2022-11-03 15:22:02 +00:00
Richard Davey
ce1cc86185 Add isSeeking parameter 2022-11-03 14:26:38 +00:00
Richard Davey
1ca43444f4 Only reset property if seeking 2022-11-03 14:26:30 +00:00
Richard Davey
9f0baeaab7 Update TweenManager.js 2022-11-03 13:24:51 +00:00
Richard Davey
b9004eff67 Made getValue more bullet proof 2022-11-03 13:24:48 +00:00
Richard Davey
e921c61b39 Improved jsdocs and removed this.delta property as we don't need to store it internally 2022-11-03 13:17:39 +00:00
Richard Davey
7fedd312d0 Update CHANGELOG-v3.60.md 2022-11-03 12:57:02 +00:00
Richard Davey
36c65618d7 Safer seek loop 2022-11-03 12:56:58 +00:00
Richard Davey
b7a109bd26 Updated docs to remove frame reference and add clarity 2022-11-03 12:45:10 +00:00
Richard Davey
fc007d39ef Updated docs and seeking 2022-11-02 19:00:16 +00:00
Richard Davey
57a49934af Use reset now 2022-11-02 19:00:08 +00:00
Richard Davey
a679efe03f Use MAX const 2022-11-02 18:03:07 +00:00
Richard Davey
2daa8c9853 New reset and seek methods 2022-11-02 18:03:01 +00:00
Richard Davey
9f89de4594 New reset method that fully resets this TweenData 2022-11-02 18:02:52 +00:00
Richard Davey
a7827ba52e Use MAX const 2022-11-02 18:02:28 +00:00
Richard Davey
3f0a466a8d Added MAX const 2022-11-02 18:02:18 +00:00
Richard Davey
59b0ca98bf Added isInfinite and redid seek handling. Added forward and rewind. 2022-11-02 13:35:30 +00:00
Richard Davey
3d9ac51338 Clamp the progress between 0 and 1 2022-11-02 13:34:55 +00:00
Richard Davey
1ace8967cb Update CHANGELOG-v3.60.md 2022-10-31 22:47:16 +00:00
Richard Davey
3b50fa65d6 WebGLSnapshot will now flip the pixels in the created Image element if the source was a framebuffer. This means grabbing a snapshot from a Dynamic or Render Texture will now correctly invert the pixels on the y axis for an Image. Grabbing from the game renderer will skip this. 2022-10-31 22:47:14 +00:00
Richard Davey
7d594dd49a Clarify snapshot docs 2022-10-31 22:46:44 +00:00
Richard Davey
474d5219ac Update CHANGELOG-v3.60.md 2022-10-31 22:17:42 +00:00
Richard Davey
e878cebd16 Force it to return Color object 2022-10-31 22:17:39 +00:00
Richard Davey
22eae26007 WebRenderer.snapshotFramebuffer and by extension, the snapshot methods in Dynamic Textures and Render Textures, has been updated to ensure that the width and height never exceed the framebuffer dimensions, or it'll cause a runtime error. The method snapshotArea has had this limitation removed as a result, allowing you to snapshot areas that are larger than the Canvas. Fix #5707 2022-10-31 22:17:27 +00:00
Richard Davey
49cad2a837 Update CHANGELOG-v3.60.md 2022-10-31 18:08:05 +00:00
Richard Davey
af7ba68a19 When playing a chained animation, the nextAnim property could get set to undefined which would stop the next animation in the queue from being set. The check now handles all falsey cases. Fix #5852 2022-10-31 18:08:01 +00:00
Richard Davey
de3e864c2c Update CHANGELOG-v3.60.md 2022-10-31 18:02:53 +00:00
Richard Davey
8434d45912 Animation.stop is always called when a new animation is loaded, regardless if the animation was playing or not and the delayCounter is reset to zero. This stops animations with delays preventing other animations from being started until the delay has expired. Fix #5680 2022-10-31 18:02:50 +00:00
Richard Davey
dfc794c339 Animation.showBeforeDelay is a new optional boolean property you can set when creating, or playing an animation. If the animation has a delay before playback starts this controls if it should still set the first frame immediately, or after the delay has expired (the default). 2022-10-31 18:01:35 +00:00
Richard Davey
ba6af3a920 Conditionally set DEBUG 2022-10-31 16:17:16 +00:00
Richard Davey
e618e149e8 Update InputPlugin.js 2022-10-28 18:43:40 +01:00
Richard Davey
4f0029c03c Added captureFrame, captureNextFrame, getFps, startCapture and stopCapture methods 2022-10-28 18:23:24 +01:00
Richard Davey
4a5f6adfe4 Enable for debugging 2022-10-28 18:22:57 +01:00
Richard Davey
6ad852f089 Update CHANGELOG-v3.60.md 2022-10-28 17:59:52 +01:00
Richard Davey
94942d6633 Update InputPlugin.js 2022-10-28 17:57:43 +01:00
Richard Davey
ae378e3820 Added resetPointers method 2022-10-28 17:56:57 +01:00
Richard Davey
a11adfb040 Include SpectorJS in debug build 2022-10-28 17:54:11 +01:00