Commit graph

267 commits

Author SHA1 Message Date
Richard Davey
1f8276ac76 Updated copyright year, company and author 2024-02-19 17:12:24 +00:00
Richard Davey
755950760b Remove rounding 2023-11-07 18:52:23 +00:00
Richard Davey
7590600b5e Camera.preRender will no longer round the origin, follow coordinates or scrollX/Y coordinates. It will still round the World view. 2023-11-07 18:31:48 +00:00
samme
cea4eb3a19 Docs: BaseCamera#ignore() entries type
Can be a Layer
2023-03-19 09:04:11 -07:00
Richard Davey
d51a8fb888 Improved jsdocs 2023-03-02 21:59:35 +00:00
Richard Davey
d8ea418ae6 Gave Camera post pipeline 2023-02-07 21:37:04 +00:00
samme
7f345dfab5 Change BaseCamera to AlphaSingle 2023-02-03 10:32:58 -08:00
Richard Davey
468bf7821d Updated copyright year 2023-01-02 17:36:27 +00:00
Richard Davey
8f8309a945 Camera.scrollX and scrollY will now only set the Camera.dirty flag to true if the new value given to them is different from their current value. This allows you to use this property in your own culling functions. Fix #6088 2022-12-09 18:14:38 +00:00
Richard Davey
bda73034e3 May as well use cached value 2022-12-09 18:03:50 +00:00
Richard Davey
62769d78ce Camera.isSceneCamera is a new boolean that controls if the Camera belongs to a Scene (the default), or a Texture. You can set this via the Camera.setScene method. Once set the Camera.updateSystem method is skipped, preventing the WebGL Renderer from setting a scissor every frame. 2022-10-03 15:49:40 +01:00
Richard Davey
f136a796fa * Camera.preRender will now apply Math.floor instead of Math.round to the values, keeping it consistent with the Renderer when following a sprite. 2022-09-29 22:10:29 +01:00
Richard Davey
519aed9f4a Update Camera.js 2022-09-29 16:46:30 +01:00
Richard Davey
e86c78dd1e lint fix 2022-09-29 14:56:31 +01:00
Richard Davey
9aa1e0c2a9
Merge pull request #6216 from JernejHabjan/visible-children-performance
Improve visible children performance
2022-09-29 14:54:16 +01:00
Richard Davey
023343c789 All events have a type of string. Fix #6136 2022-09-21 22:01:03 +01:00
Jernej Habjan
f8030d5ed8 Lint fixes 2022-09-11 10:34:58 +02:00
Jernej Habjan
272f61eda2 Improve visible children performance 2022-09-08 19:18:45 +02:00
Richard Davey
2f46aaf54a Typo 2022-08-23 17:37:46 +01:00
Richard Davey
59fbcc5ca3 Updated copyright year 2022-02-28 14:29:51 +00:00
Richard Davey
f34657cf87 Removed the Tint and Flip components from the Camera class. Neither were ever used internally, or during rendering, so it was just confusing having them in the API. 2021-10-17 16:34:45 +01:00
Richard Davey
83e2406cb4 The CameraManager.destroy function will now remove the Scale Manager RESIZE event listener created as part of boot, where-as before it didn't clean it up, leading to gc issues. Fix #5791 2021-09-28 15:08:31 +01:00
Richard Davey
dc6b9c6d93 lint fix 2021-09-23 15:37:22 +01:00
Richard Davey
0c8bc91d4c
Merge pull request #5316 from kainage/camera-flash-effect-alpha
Allow setting alpha for 2D camera flash effect
2021-09-23 15:35:50 +01:00
samme
e2384f8961 Add min and max zoom to camera controls 2021-02-14 21:07:37 -08:00
Richard Davey
9ad922f56d Moved renderList to BaseCamera 2021-01-11 09:46:50 +00:00
Richard Davey
dc925267fc Added the new renderList property and addToRenderList method 2021-01-07 12:31:12 +00:00
Richard Davey
5481a64023 Clear the render list if not destroying the camera 2021-01-07 12:30:46 +00:00
Richard Davey
c6ad8b1306 Better parameter name 2021-01-07 11:03:59 +00:00
Richard Davey
ab1646c2a0 Update BaseCamera.js 2020-12-11 12:41:35 +00:00
Richard Davey
7dba1c4b2f Update BaseCamera.js 2020-12-07 13:09:12 +00:00
Richard Davey
02c34cd64e Replace integer with number 2020-11-23 10:22:13 +00:00
Richard Davey
9b1ac7036d Added ability for camera to zoomX and zoomY 2020-11-19 18:07:17 +00:00
Richard Davey
080677f28c Set on creation, not in the component 2020-11-17 14:08:09 +00:00
Richard Davey
c12b4cff3f Swizzle RGB 2020-11-16 15:45:45 +00:00
kainage
ed6ca0ee3e Reset alpha to correct value after flash effect complete 2020-11-09 20:48:04 -08:00
Richard Davey
c29d7b18ed Removed everything to do with Camera's rendering to textures or managing their own framebuffers.
Now uses pipeline component instead.
2020-11-06 15:35:56 +00:00
Richard Davey
d670edd708 No need to reference via game 2020-10-27 13:55:27 +00:00
Richard Davey
faec17f4b0 Cameras.Scene2D.Events.FOLLOW_UPDATE is a new Event that is dispatched by a Camera when it is following a Game Object. It is dispatched every frame, right after the final Camera position and internal matrices have been updated. Use it if you need to react to a camera, using its most current position and the camera is following something. Fix #5253 2020-10-17 11:37:27 +01:00
Richard Davey
84c1344f63 CameraManager.getVisibleChildren is a new method that is called internally by the CameraManager.render method. It filters the DisplayList, so that Game Objects that pass the willRender test for the given Camera are added to a sub-list, which is then passed to the renderer. This avoids the renderer having to do any checks on the children, it just renders each one in turn. 2020-10-16 11:35:45 +01:00
Richard Davey
1df4661487 Camera.roundPixels now rounds worldView matrix 2020-10-08 11:07:21 +01:00
Richard Davey
8119ce7da1 Fixed use of old camera private properties 2020-09-29 16:44:11 +01:00
Richard Davey
76d2630f8b Fixed Shake effect 2020-09-29 16:43:42 +01:00
Richard Davey
90096a6b64 Added mention about tint to the docs. Fix #5327 2020-09-29 09:31:09 +01:00
Richard Davey
a8df17b622 Corrected JSDocs 2020-09-21 09:54:23 +01: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
6a966e3f3b Removed interpolationPercentage parameter from all render methods, as it has never been used. 2020-09-14 15:33:58 +01:00
Richard Davey
f0f93cde7d The CameraManager.onResize method no longer receives or uses the resolution parameter. 2020-09-12 11:52:40 +01:00
Richard Davey
3579d39fa2 The Camera.preRender method no longer receives or uses the resolution parameter. 2020-09-12 11:51:59 +01:00
Richard Davey
d1f2c9239c Resolution removal
* The `BaseCamera.resolution` property has been removed.
* The internal private `BaseCamera._cx`, `_cy`, `_cw` and `_ch` properties has been removed.
* The `BaseCamera.preRender` method no longer receives or uses the `resolution` parameter.
2020-09-12 11:51:37 +01:00