Commit graph

201 commits

Author SHA1 Message Date
Richard Davey
1f8276ac76 Updated copyright year, company and author 2024-02-19 17:12:24 +00:00
Richard Davey
d9f51c0562 null the Camera reference 2023-09-05 14:56:13 +01:00
Richard Davey
468bf7821d Updated copyright year 2023-01-02 17:36:27 +00:00
Richard Davey
e878cebd16 Force it to return Color object 2022-10-31 22:17:39 +00:00
Richard Davey
ac2c9c8fb8 Fixed Texture Manager reference. Fix #6250 2022-10-14 13:24:46 +01:00
Rex
999a68c019 Update hitarea 2022-10-13 12:36:37 +08:00
Rex
d4093765be Add resize method back 2022-10-12 16:58:52 +08:00
Richard Davey
b318cd734f Removed use of UUID from RenderTexture and fixed saveTexture method. 2022-10-09 16:01:06 +01:00
Richard Davey
9d834efb0a Update RenderTexture.js 2022-10-07 15:14:15 +01:00
Richard Davey
9671e54e2b Add Camera property 2022-10-07 12:46:54 +01:00
Richard Davey
20a40a8844 Updated docs 2022-10-04 15:42:25 +01:00
Richard Davey
56a1af3c05 Updated RenderTexture to just be an Image backed by a DynamicTexture 2022-10-04 14:49:47 +01:00
Richard Davey
b13232c211 Moved nineslice out, use multi pipeline and make snapshot functions smaller 2022-09-27 16:59:01 +01:00
Richard Davey
35bae05603 Allow negative offsets 2022-09-27 13:29:34 +01:00
Richard Davey
90ad29e958 Renamed frameFill to repeat and made it a lot more flexible.
Added resetStamp and removed un-used methods.
2022-09-26 23:18:07 +01:00
Richard Davey
291f3049e6 RenderTexture.isDrawing is a new read-only flag that tells if the Render Texture is currently batch drawing, or not. 2022-09-26 18:32:31 +01:00
Richard Davey
3d3db60331 Fixed repeating methods 2022-09-26 18:06:28 +01:00
Richard Davey
af66164302 Testing 9-slice 2022-09-26 18:00:15 +01:00
Richard Davey
95d0dbb624 RenderTexture.fillFrame is a new method that will take a given texture and draw it to the Render Texture as a fill-pattern. You can control the offset, alpha and tint of the draw 2022-08-30 22:06:34 +01:00
Richard Davey
4f652e4c7c Only flip if being used as a sprite textured 2022-06-17 15:14:54 +01:00
Richard Davey
ec029cfaf0 RenderTexture.setIsSpriteTexture is a new method that allows you to flag a Render Texture as being used as the source for Sprite Game Object textures. You can also toggle the new boolean property isSpriteTexture as well. Doing this ensures that images drawn to the Render Texture are correctly inverted for rendering in WebGL. Not doing so can cause inverted frames. If you use this method, you must use it before drawing anything to the Render Texture. Fix #6057 #6017 2022-05-30 18:26:12 +01:00
Richard Davey
a4d8e87095 Fixed lint errors 2022-05-10 17:06:53 +01:00
Richard Davey
919fa39faa
Merge pull request #6067 from TJ09/commonjs-import-change
Don't reassign the return values from require()
2022-05-09 16:49:58 +01:00
Richard Davey
27ebe928b5 Update RenderTexture.js 2022-04-27 22:37:15 +01:00
T.J. L
ff4ef2872b Don't overwrite the return values from require() 2022-04-02 01:49:19 -07:00
Richard Davey
59fbcc5ca3 Updated copyright year 2022-02-28 14:29:51 +00:00
Andy Mikulski
b3c4616550
RenderTexture: Use 255-based RGB values when filling a Canvas 2022-02-22 18:33:09 -07:00
Richard Davey
6edbd9df22 Update RenderTexture.js 2022-02-21 18:42:54 +00:00
Richard Davey
6a6590d0dd
Merge pull request #6000 from sjb933/hotfix-rendertexture-blend
Fixed WebGL blending that was broken in 3.50. Fix #5565, fix #5996
2022-02-21 18:41:40 +00:00
Shane Bammel
1c4c11b527 Fixed WebGL blending that was broken in 3.50. Fix #5565, fix #5996 2022-02-11 16:34:43 -06:00
Richard Davey
a4308cfa3a Skips Canvas drawImage calls if invalid frame sizes given. Fix #5951 2022-02-03 16:44:24 +00:00
Richard Davey
d51fa15cdf Made docs include mention of post fx. #5942 2021-12-21 17:41:52 +00:00
Richard Davey
9d7a575a4f Added FX component 2021-10-16 15:23:19 +01:00
Richard Davey
43df6de757 Removed duplicate post fx calls 2021-10-16 15:22:30 +01:00
Richard Davey
7d3970178d The RenderTexture.endDraw method has a new optional boolean erase which allows you to draw all objects in the batch using a blend mode of ERASE. This has the effect of erasing any filled pixels in the objects being drawn. 2021-04-25 20:32:56 +01:00
samme
43bd8d124c
Docs: fix RenderTexture params 2021-03-11 20:53:59 -08:00
Richard Davey
1c8662dc1f Call addToRenderList 2021-01-07 14:52:08 +00:00
Richard Davey
00d8b6a009 Invoke camera.addToRenderList method 2021-01-07 12:31:31 +00:00
Richard Davey
1a65f50a25 Added new renderDirect hook which RenderTexture can use. Fix #5431 2020-12-11 13:40:53 +00:00
Richard Davey
1857c3f2da Send dimensions and reset scissors 2020-12-10 18:07:41 +00:00
Richard Davey
73a0c9d2ce Remove unused code 2020-12-09 18:04:53 +00:00
Richard Davey
e03c514b03 Fixed WebGL erase mode 2020-12-09 15:55:11 +00:00
Richard Davey
16d4d11939 Final fixes to blitFrame 2020-12-09 15:20:09 +00:00
Richard Davey
1cb6d525be New blitFrame working. Now to adjust when src > target height. 2020-12-09 14:08:24 +00:00
Richard Davey
827851d02c Update RenderTexture.js 2020-12-08 17:54:37 +00:00
Richard Davey
0c4eec0fd9 Now using new Render Target approach (texture blend still need to be added) 2020-12-08 17:38:42 +00:00
Richard Davey
08b304372c Made the Render Events global, not WebGL specific and allowed Canvas Renderer to emit them too 2020-12-04 15:07:26 +00:00
Richard Davey
edc076674e New Resize handler. Fix #5412 2020-12-04 11:59:47 +00:00
Richard Davey
4d872e2e9d RenderTexture.erase has never worked when using the Canvas Renderer and a texture frame, only with Game Objects. It now works with both. Fix #5422 2020-12-03 15:46:26 +00:00
Richard Davey
6bb6ff8ef4 Updated JSDocs to clarify issue. Fix #4692 2020-12-03 15:14:34 +00:00