melonjs 20.10.1 → 20.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -5
- package/build/application/application.d.ts.map +1 -1
- package/build/application/defaultApplicationSettings.d.ts +1 -0
- package/build/application/defaultApplicationSettings.d.ts.map +1 -1
- package/build/application/settings.d.ts +54 -3
- package/build/application/settings.d.ts.map +1 -1
- package/build/audio/audio.d.ts +14 -4
- package/build/audio/audio.d.ts.map +1 -1
- package/build/audio/backend/sound.d.ts.map +1 -1
- package/build/audio/playback.d.ts.map +1 -1
- package/build/audio/spatial.d.ts +13 -2
- package/build/audio/spatial.d.ts.map +1 -1
- package/build/audio/types.d.ts +44 -4
- package/build/audio/types.d.ts.map +1 -1
- package/build/camera/camera2d.d.ts +48 -4
- package/build/camera/camera2d.d.ts.map +1 -1
- package/build/camera/camera3d.d.ts.map +1 -1
- package/build/camera/effects/pixelate_transition_effect.d.ts +67 -0
- package/build/camera/effects/pixelate_transition_effect.d.ts.map +1 -0
- package/build/camera/effects/shake_effect.d.ts +3 -1
- package/build/camera/effects/shake_effect.d.ts.map +1 -1
- package/build/geometries/ellipse.d.ts +8 -4
- package/build/geometries/ellipse.d.ts.map +1 -1
- package/build/geometries/line.d.ts +2 -2
- package/build/geometries/line.d.ts.map +1 -1
- package/build/geometries/polygon.d.ts +3 -3
- package/build/geometries/polygon.d.ts.map +1 -1
- package/build/geometries/rectangle.d.ts +2 -2
- package/build/geometries/rectangle.d.ts.map +1 -1
- package/build/geometries/roundrect.d.ts +2 -2
- package/build/geometries/roundrect.d.ts.map +1 -1
- package/build/index.d.ts +5 -2
- package/build/index.d.ts.map +1 -1
- package/build/index.js +9944 -6234
- package/build/index.js.map +4 -4
- package/build/input/gamepad.d.ts.map +1 -1
- package/build/input/pointerevent.d.ts.map +1 -1
- package/build/lang/console.d.ts +16 -1
- package/build/lang/console.d.ts.map +1 -1
- package/build/level/tiled/TMXLayer.d.ts +1 -1
- package/build/level/tiled/TMXLayer.d.ts.map +1 -1
- package/build/level/tiled/TMXObject.d.ts +196 -1
- package/build/level/tiled/TMXObject.d.ts.map +1 -1
- package/build/level/tiled/TMXObjectFactory.d.ts +18 -5
- package/build/level/tiled/TMXObjectFactory.d.ts.map +1 -1
- package/build/level/tiled/TMXTile.d.ts.map +1 -1
- package/build/level/tiled/TMXTileMap.d.ts.map +1 -1
- package/build/level/tiled/TMXTileset.d.ts +17 -1
- package/build/level/tiled/TMXTileset.d.ts.map +1 -1
- package/build/level/tiled/TMXUtils.d.ts.map +1 -1
- package/build/level/tiled/factories/shape.d.ts.map +1 -1
- package/build/level/tiled/renderer/TMXIsometricRenderer.d.ts.map +1 -1
- package/build/level/tiled/renderer/TMXObliqueRenderer.d.ts.map +1 -1
- package/build/level/tiled/renderer/TMXOrthogonalRenderer.d.ts.map +1 -1
- package/build/level/tiled/renderer/TMXRenderer.d.ts.map +1 -1
- package/build/lighting/light2d.d.ts +30 -0
- package/build/lighting/light2d.d.ts.map +1 -1
- package/build/loader/loadingscreen.d.ts.map +1 -1
- package/build/math/matrix2d.d.ts +3 -2
- package/build/math/matrix2d.d.ts.map +1 -1
- package/build/math/matrix3d.d.ts +4 -1
- package/build/math/matrix3d.d.ts.map +1 -1
- package/build/particles/emitter.d.ts.map +1 -1
- package/build/particles/particle.d.ts.map +1 -1
- package/build/particles/settings.d.ts +25 -0
- package/build/particles/settings.d.ts.map +1 -1
- package/build/physics/bounds.d.ts +5 -5
- package/build/physics/bounds.d.ts.map +1 -1
- package/build/physics/builtin/body.d.ts +1 -0
- package/build/physics/builtin/body.d.ts.map +1 -1
- package/build/physics/builtin/builtin-adapter.d.ts.map +1 -1
- package/build/physics/builtin/detector.d.ts.map +1 -1
- package/build/physics/builtin/raycast.d.ts.map +1 -1
- package/build/physics/builtin/sat.d.ts +40 -1
- package/build/physics/builtin/sat.d.ts.map +1 -1
- package/build/renderable/animation.d.ts +16 -2
- package/build/renderable/animation.d.ts.map +1 -1
- package/build/renderable/colorlayer.d.ts.map +1 -1
- package/build/renderable/container.d.ts +22 -2
- package/build/renderable/container.d.ts.map +1 -1
- package/build/renderable/entity/entity.d.ts.map +1 -1
- package/build/renderable/frameAnimation.d.ts.map +1 -1
- package/build/renderable/imagelayer.d.ts.map +1 -1
- package/build/renderable/instanced_mesh.d.ts.map +1 -1
- package/build/renderable/mesh.d.ts.map +1 -1
- package/build/renderable/renderable.d.ts +69 -1
- package/build/renderable/renderable.d.ts.map +1 -1
- package/build/renderable/sprite.d.ts +23 -7
- package/build/renderable/sprite.d.ts.map +1 -1
- package/build/renderable/sprite3d.d.ts +5 -3
- package/build/renderable/sprite3d.d.ts.map +1 -1
- package/build/renderable/text/text.d.ts.map +1 -1
- package/build/renderable/trail3d.d.ts.map +1 -1
- package/build/renderable/ui/uipanel.d.ts +3 -3
- package/build/renderable/ui/uipanel.d.ts.map +1 -1
- package/build/state/stage.d.ts +12 -4
- package/build/state/stage.d.ts.map +1 -1
- package/build/state/state.d.ts +31 -6
- package/build/state/state.d.ts.map +1 -1
- package/build/system/legacy_pool.d.ts.map +1 -1
- package/build/system/timer.d.ts +1 -0
- package/build/system/timer.d.ts.map +1 -1
- package/build/utils/fetchdata.d.ts.map +1 -1
- package/build/video/buffer/vertex.d.ts.map +1 -1
- package/build/video/canvas/canvas_renderer.d.ts +8 -7
- package/build/video/canvas/canvas_renderer.d.ts.map +1 -1
- package/build/video/effects/ambientlight.d.ts +2 -0
- package/build/video/effects/ambientlight.d.ts.map +1 -0
- package/build/video/effects/bloom.d.ts +8 -9
- package/build/video/effects/bloom.d.ts.map +1 -1
- package/build/video/effects/blur.d.ts +3 -2
- package/build/video/effects/blur.d.ts.map +1 -1
- package/build/video/effects/chromaticAberration.d.ts +3 -2
- package/build/video/effects/chromaticAberration.d.ts.map +1 -1
- package/build/video/effects/dissolve.d.ts +5 -2
- package/build/video/effects/dissolve.d.ts.map +1 -1
- package/build/video/effects/dropShadow.d.ts +15 -3
- package/build/video/effects/dropShadow.d.ts.map +1 -1
- package/build/video/effects/flash.d.ts +6 -2
- package/build/video/effects/flash.d.ts.map +1 -1
- package/build/video/effects/frame.d.ts +48 -0
- package/build/video/effects/frame.d.ts.map +1 -0
- package/build/video/effects/glow.d.ts +8 -4
- package/build/video/effects/glow.d.ts.map +1 -1
- package/build/video/effects/glsl_realization.d.ts.map +1 -1
- package/build/video/effects/hologram.d.ts +5 -2
- package/build/video/effects/hologram.d.ts.map +1 -1
- package/build/video/effects/local_space.d.ts +19 -0
- package/build/video/effects/local_space.d.ts.map +1 -0
- package/build/video/effects/mesh_splice.d.ts.map +1 -1
- package/build/video/effects/outline.d.ts +8 -4
- package/build/video/effects/outline.d.ts.map +1 -1
- package/build/video/effects/pixelate.d.ts +3 -2
- package/build/video/effects/pixelate.d.ts.map +1 -1
- package/build/video/effects/radialGradient.d.ts +13 -16
- package/build/video/effects/radialGradient.d.ts.map +1 -1
- package/build/video/effects/rgba.d.ts +2 -0
- package/build/video/effects/rgba.d.ts.map +1 -0
- package/build/video/effects/scanline.d.ts.map +1 -1
- package/build/video/effects/shadereffect.d.ts +13 -0
- package/build/video/effects/shadereffect.d.ts.map +1 -1
- package/build/video/effects/shine.d.ts +10 -2
- package/build/video/effects/shine.d.ts.map +1 -1
- package/build/video/effects/squish.d.ts.map +1 -1
- package/build/video/effects/sway.d.ts +69 -0
- package/build/video/effects/sway.d.ts.map +1 -0
- package/build/video/effects/tintPulse.d.ts +5 -2
- package/build/video/effects/tintPulse.d.ts.map +1 -1
- package/build/video/effects/vignette.d.ts.map +1 -1
- package/build/video/effects/wave.d.ts +21 -2
- package/build/video/effects/wave.d.ts.map +1 -1
- package/build/video/effects/wgsl/parse.d.ts.map +1 -1
- package/build/video/effects/wgsl/scaffold.d.ts.map +1 -1
- package/build/video/effects/wgsl_realization.d.ts.map +1 -1
- package/build/video/gpu/frame.d.ts +2 -0
- package/build/video/gpu/frame.d.ts.map +1 -0
- package/build/video/renderer.d.ts +37 -12
- package/build/video/renderer.d.ts.map +1 -1
- package/build/video/rendertarget/canvasrendertarget.d.ts +14 -4
- package/build/video/rendertarget/canvasrendertarget.d.ts.map +1 -1
- package/build/video/rendertarget/rendertarget.d.ts +12 -16
- package/build/video/rendertarget/rendertarget.d.ts.map +1 -1
- package/build/video/rendertarget/webgpurendertarget.d.ts +1 -0
- package/build/video/rendertarget/webgpurendertarget.d.ts.map +1 -1
- package/build/video/texture/atlas.d.ts +47 -28
- package/build/video/texture/atlas.d.ts.map +1 -1
- package/build/video/texture/cache.d.ts.map +1 -1
- package/build/video/utils/pixel_snap.d.ts +44 -0
- package/build/video/utils/pixel_snap.d.ts.map +1 -0
- package/build/video/webgl/batchers/batcher.d.ts.map +1 -1
- package/build/video/webgl/batchers/lit_quad_batcher.d.ts.map +1 -1
- package/build/video/webgl/batchers/material_batcher.d.ts.map +1 -1
- package/build/video/webgl/batchers/mesh_batcher.d.ts.map +1 -1
- package/build/video/webgl/batchers/quad_batcher.d.ts +2 -1
- package/build/video/webgl/batchers/quad_batcher.d.ts.map +1 -1
- package/build/video/webgl/glshader.d.ts.map +1 -1
- package/build/video/webgl/renderers/tmxlayer/orthogonal.d.ts.map +1 -1
- package/build/video/webgl/shaders/frameclamp.d.ts +2 -0
- package/build/video/webgl/shaders/frameclamp.d.ts.map +1 -0
- package/build/video/webgl/shaders/multitexture-lit.d.ts.map +1 -1
- package/build/video/webgl/shaders/multitexture.d.ts.map +1 -1
- package/build/video/webgl/utils/uniforms.d.ts.map +1 -1
- package/build/video/webgl/webgl_renderer.d.ts +0 -21
- package/build/video/webgl/webgl_renderer.d.ts.map +1 -1
- package/build/video/webgpu/batchers/lit_quad_batcher.d.ts +2 -1
- package/build/video/webgpu/batchers/lit_quad_batcher.d.ts.map +1 -1
- package/build/video/webgpu/batchers/mesh_batcher.d.ts +0 -1
- package/build/video/webgpu/batchers/mesh_batcher.d.ts.map +1 -1
- package/build/video/webgpu/batchers/quad_batcher.d.ts +2 -2
- package/build/video/webgpu/batchers/quad_batcher.d.ts.map +1 -1
- package/build/video/webgpu/buffer/uniformring.d.ts.map +1 -1
- package/build/video/webgpu/effect_binding.d.ts.map +1 -1
- package/build/video/webgpu/renderers/tmxlayer/orthogonal.d.ts.map +1 -1
- package/build/video/webgpu/webgpu_renderer.d.ts +3 -4
- package/build/video/webgpu/webgpu_renderer.d.ts.map +1 -1
- package/package.json +21 -19
- package/skills/AGENTS.md +2 -1
- package/skills/melonjs/SKILL.md +1 -0
- package/skills/melonjs-audio/SKILL.md +47 -5
- package/skills/melonjs-camera-and-drawing/SKILL.md +63 -1
- package/skills/melonjs-display-and-scaling/SKILL.md +117 -7
- package/skills/melonjs-effects-and-shaders/SKILL.md +136 -19
- package/skills/melonjs-input/SKILL.md +24 -2
- package/skills/melonjs-lighting/SKILL.md +43 -8
- package/skills/melonjs-loading-assets/SKILL.md +4 -3
- package/skills/melonjs-math/SKILL.md +21 -1
- package/skills/melonjs-particles-and-trails/SKILL.md +36 -2
- package/skills/melonjs-performance/SKILL.md +4 -0
- package/skills/melonjs-plugins/SKILL.md +20 -1
- package/skills/melonjs-renderables/SKILL.md +46 -6
- package/skills/melonjs-renderer-backends/SKILL.md +2 -2
- package/skills/melonjs-scenes-and-state/SKILL.md +17 -2
- package/skills/melonjs-sprites-and-animation/SKILL.md +19 -3
- package/skills/melonjs-tilemaps/SKILL.md +126 -4
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export default CanvasRenderTarget;
|
|
2
2
|
/**
|
|
3
|
-
* A 2D canvas render target
|
|
4
|
-
*
|
|
5
|
-
* a
|
|
3
|
+
* A 2D canvas render target: draw into it once and reuse it, as a texture,
|
|
4
|
+
* a baked background or a fog map. Make one and keep it rather than making
|
|
5
|
+
* a new one each time. The engine uses it too, for text, gradients,
|
|
6
|
+
* particle textures and tinted images. Drawn with the WebGL or WebGPU
|
|
7
|
+
* renderer, its canvas is uploaded to the GPU, and uploaded again after
|
|
8
|
+
* {@link CanvasRenderTarget#invalidate}.
|
|
6
9
|
* @augments RenderTarget
|
|
7
10
|
* @category Rendering
|
|
8
11
|
*/
|
|
@@ -57,7 +60,7 @@ declare class CanvasRenderTarget extends RenderTarget {
|
|
|
57
60
|
setAntiAlias(enable?: boolean): void;
|
|
58
61
|
/**
|
|
59
62
|
* Returns an ImageData object representing the underlying pixel data for a specified portion of this canvas texture.
|
|
60
|
-
* (Note: when using getImageData(), it is highly recommended to use the `willReadFrequently` attribute when
|
|
63
|
+
* (Note: when using getImageData(), it is highly recommended to use the `willReadFrequently` attribute when creating the corresponding canvas texture)
|
|
61
64
|
* @param {number} x - The x-axis coordinate of the top-left corner of the rectangle from which the ImageData will be extracted
|
|
62
65
|
* @param {number} y - The y-axis coordinate of the top-left corner of the rectangle from which the ImageData will be extracted
|
|
63
66
|
* @param {number} width - The width of the rectangle from which the ImageData will be extracted. Positive values are to the right, and negative to the left
|
|
@@ -72,6 +75,13 @@ declare class CanvasRenderTarget extends RenderTarget {
|
|
|
72
75
|
*/
|
|
73
76
|
invalidate(renderer: Renderer): void;
|
|
74
77
|
glTextureUnit: any;
|
|
78
|
+
/**
|
|
79
|
+
* Release this render target: its canvas, and the copy of it the
|
|
80
|
+
* renderer uploaded to the GPU. It must not be used afterwards.
|
|
81
|
+
* @param {Renderer} [renderer] - the renderer it was drawn with, so the
|
|
82
|
+
* copy uploaded to the GPU is freed too
|
|
83
|
+
*/
|
|
84
|
+
destroy(renderer?: Renderer): void;
|
|
75
85
|
#private;
|
|
76
86
|
}
|
|
77
87
|
import RenderTarget from "./rendertarget.ts";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"canvasrendertarget.d.ts","sourceRoot":"","sources":["../../../src/video/rendertarget/canvasrendertarget.js"],"names":[],"mappings":";AA8EA
|
|
1
|
+
{"version":3,"file":"canvasrendertarget.d.ts","sourceRoot":"","sources":["../../../src/video/rendertarget/canvasrendertarget.js"],"names":[],"mappings":";AA8EA;;;;;;;;;GASG;AACH;IACC;;;;;;;;;OASG;IACH,mBATW,MAAM,UACN,MAAM,eAEd;QAA4B,OAAO;QACN,WAAW;QACX,eAAe;QACf,kBAAkB;QAClB,SAAS;KACxC,EAoCA;IAhCA;;;;;;;;;;;;;;;;;MAAkE;IASjE,YAA+B;IAUhC,aAA0D;IAGzD;;;;OAIG;IACH,cAHU,MAAM,CAGK;IAOvB;;;OAGG;IACH,4CAGC;IAUD;;;OAGG;IACH,sBAFW,OAAO,QAwBjB;IA4BD;;;;;;;;OAQG;IACH,gBANW,MAAM,KACN,MAAM,SACN,MAAM,UACN,MAAM,GACJ,SAAS,CAUrB;IAoDD;;;;OAIG;IACH,qBAFW,QAAQ,QAsBlB;IAcC,mBAEC;IAmBH;;;;;OAKG;IACH,mBAHW,QAAQ,QAyClB;;CA2BD;yBApZwB,mBAAmB;0BAMnB,gBAAgB"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* and reading back pixel data from an offscreen surface.
|
|
5
|
-
* Concrete implementations:
|
|
6
|
-
* - {@link WebGLRenderTarget} — WebGL framebuffer object (FBO) for post-processing
|
|
7
|
-
* - {@link CanvasRenderTarget} — 2D canvas surface for texture generation
|
|
2
|
+
* The base class of an offscreen render target: a surface the engine can
|
|
3
|
+
* draw into, clear, resize and read back, whatever the renderer.
|
|
8
4
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
5
|
+
* The one to create yourself is {@link CanvasRenderTarget}, a 2D canvas:
|
|
6
|
+
* draw something into it once (a texture, a background, a fog map) and
|
|
7
|
+
* reuse it every frame. The WebGL and WebGPU renderers keep render targets
|
|
8
|
+
* of their own for post effects (a framebuffer, a GPU texture); those are
|
|
9
|
+
* internal.
|
|
11
10
|
* @category Rendering
|
|
12
11
|
*/
|
|
13
12
|
export default abstract class RenderTarget {
|
|
@@ -22,14 +21,12 @@ export default abstract class RenderTarget {
|
|
|
22
21
|
/**
|
|
23
22
|
* Bind this render target as the active draw destination.
|
|
24
23
|
* All subsequent draw calls will render into this target until {@link unbind} is called.
|
|
25
|
-
* No-op by default
|
|
26
|
-
* (a WebGL FBO today, a `GPURenderPassEncoder` once the WebGPU
|
|
27
|
-
* renderer lands).
|
|
24
|
+
* No-op by default: only the GPU renderers' own targets override it.
|
|
28
25
|
*/
|
|
29
26
|
bind(): void;
|
|
30
27
|
/**
|
|
31
28
|
* Unbind this render target, restoring the default (screen) output.
|
|
32
|
-
* No-op by default
|
|
29
|
+
* No-op by default: only the GPU renderers' own targets override it.
|
|
33
30
|
*/
|
|
34
31
|
unbind(): void;
|
|
35
32
|
/**
|
|
@@ -52,10 +49,9 @@ export default abstract class RenderTarget {
|
|
|
52
49
|
*
|
|
53
50
|
* The portable form, and the one anything backend-agnostic should use.
|
|
54
51
|
* Synchronous readback is NOT portable: WebGPU can only map a buffer
|
|
55
|
-
* asynchronously, so
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
* this contract and does not exist on every target.
|
|
52
|
+
* asynchronously, so its render targets cannot answer until a frame has
|
|
53
|
+
* been awaited. A {@link CanvasRenderTarget} also offers
|
|
54
|
+
* {@link CanvasRenderTarget#getImageData}, which answers at once.
|
|
59
55
|
* @param x - x coordinate of the top-left corner (default 0)
|
|
60
56
|
* @param y - y coordinate of the top-left corner (default 0)
|
|
61
57
|
* @param width - width of the area to read (default full width)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rendertarget.d.ts","sourceRoot":"","sources":["../../../src/video/rendertarget/rendertarget.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"rendertarget.d.ts","sourceRoot":"","sources":["../../../src/video/rendertarget/rendertarget.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,YAAY;IACzC;;OAEG;IACK,KAAK,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACK,MAAM,EAAE,MAAM,CAAC;IAEvB;;;;OAIG;IACH,IAAI,IAAI,IAAI;IAEZ;;;OAGG;IACH,MAAM,IAAI,IAAI;IAEd;;;;OAIG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IAM3C;;OAEG;IACH,KAAK,IAAI,IAAI;IAIb;;;OAGG;IACH,OAAO,IAAI,IAAI;IAIf;;;;;;;;;;;;;OAaG;IACH,WAAW,CACV,CAAC,CAAC,EAAE,MAAM,EACV,CAAC,CAAC,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,SAAS,CAAC;IAQrB;;;;;OAKG;IACG,MAAM,CAAC,IAAI,SAAc,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAsCjE;;;OAGG;IACG,aAAa,IAAI,OAAO,CAAC,WAAW,CAAC;IAK3C;;;;;OAKG;IACH,SAAS,CAAC,IAAI,SAAc,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAiBhE"}
|
|
@@ -69,6 +69,7 @@ export default class WebGPURenderTarget extends RenderTarget {
|
|
|
69
69
|
generation: number;
|
|
70
70
|
materialBindGroup: GPUBindGroup | null;
|
|
71
71
|
materialBindGroupGeneration: number;
|
|
72
|
+
materialBindGroupFilter: any;
|
|
72
73
|
pendingClear: boolean;
|
|
73
74
|
/**
|
|
74
75
|
* Synchronous readback is impossible under WebGPU — use
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webgpurendertarget.d.ts","sourceRoot":"","sources":["../../../src/video/rendertarget/webgpurendertarget.js"],"names":[],"mappings":"AA0BA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH;IACC;;;;OAIG;IACH,sBAJW,OAAO,8BAA8B,EAAE,OAAO,SAC9C,MAAM,UACN,MAAM,
|
|
1
|
+
{"version":3,"file":"webgpurendertarget.d.ts","sourceRoot":"","sources":["../../../src/video/rendertarget/webgpurendertarget.js"],"names":[],"mappings":"AA0BA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH;IACC;;;;OAIG;IACH,sBAJW,OAAO,8BAA8B,EAAE,OAAO,SAC9C,MAAM,UACN,MAAM,gBAqDhB;IAjDA,yDAAwB;IAGxB;;;;;;;OAOG;IACH,aAFU,MAAM,CAE2B;IAC3C;;;;;;;;;;;OAWG;IACH,QAFU,MAAM,CAEwC;IACxD,8BAA8B;IAC9B,SADW,UAAU,GAAC,IAAI,CACP;IACnB,kCAAkC;IAClC,WADW,cAAc,GAAC,IAAI,CACT;IACrB,iFAAiF;IACjF,aAD8D,UAAU,GAAC,IAAI,CACtD;IACvB,kCAAkC;IAClC,UADW,cAAc,GAAC,IAAI,CACV;IACpB;;;;OAIG;IACH,YAFU,MAAM,CAEG;IAGnB,uCAA6B;IAC7B,oCAAqC;IAErC,6BAAmC;IAEnC,sBAAyB;IA+E1B;;;;;;;;OAQG;IACH,wBAJa,YAAY,CA2BxB;IAED;;;;;;;;OAQG;IACH,qBAIC;CAgID;yBAvWwB,mBAAmB"}
|
|
@@ -90,12 +90,19 @@ export class TextureAtlas extends Texture2d {
|
|
|
90
90
|
*/
|
|
91
91
|
getRegion(name: string, atlas?: string): object;
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* Return the UVs of a named region, or of a source rectangle of the
|
|
94
|
+
* active page.
|
|
95
|
+
*
|
|
96
|
+
* A rectangle that is one of the active page's frames returns that
|
|
97
|
+
* frame's own UVs. Any other rectangle returns a new array, computed from
|
|
98
|
+
* the size of the active page's image: nothing is cached and nothing is
|
|
99
|
+
* added to the atlas.
|
|
94
100
|
* @param {string|number} name - region (or frame) name, or sx when using numeric parameters
|
|
95
101
|
* @param {number} [sy] - source y coordinate (when using numeric parameters)
|
|
96
102
|
* @param {number} [sw] - source width (when using numeric parameters)
|
|
97
103
|
* @param {number} [sh] - source height (when using numeric parameters)
|
|
98
104
|
* @returns {Float32Array} region Uvs
|
|
105
|
+
* @throws {Error} if no region has that name
|
|
99
106
|
*/
|
|
100
107
|
getUVs(name: string | number, sy?: number, sw?: number, sh?: number): Float32Array;
|
|
101
108
|
/**
|
|
@@ -136,11 +143,47 @@ export class TextureAtlas extends Texture2d {
|
|
|
136
143
|
* );
|
|
137
144
|
*/
|
|
138
145
|
createSpriteFromName(name: string, settings?: object, nineSlice?: boolean): Sprite | NineSliceSprite;
|
|
146
|
+
/**
|
|
147
|
+
* Return the Sprite settings object (framewidth, frameheight, atlas, atlasIndices, etc.)
|
|
148
|
+
* for the given set of atlas frame names. This is useful when extending {@link Sprite}
|
|
149
|
+
* and you need to pass atlas animation data to the parent constructor.
|
|
150
|
+
* @param {string[]|number[]} [names] - list of names for each sprite
|
|
151
|
+
* (when manually creating a Texture out of a spritesheet, only numeric values are authorized).
|
|
152
|
+
* If not specified, all defined names/entries in the atlas will be added.
|
|
153
|
+
* @returns {{image: TextureAtlas, framewidth: number, frameheight: number, margin: number, spacing: number, atlas: object[], anims: Object<string, object>|undefined, atlasIndices: Record<string, number>}}
|
|
154
|
+
* A settings object suitable for passing to the {@link Sprite} constructor
|
|
155
|
+
* @example
|
|
156
|
+
* // extend Sprite directly with texture atlas animation frames
|
|
157
|
+
* class MyPlayer extends me.Sprite {
|
|
158
|
+
* constructor(x, y, settings) {
|
|
159
|
+
* super(x, y, {
|
|
160
|
+
* ...game.texture.getAnimationSettings([
|
|
161
|
+
* "walk0001.png", "walk0002.png", "walk0003.png"
|
|
162
|
+
* ]),
|
|
163
|
+
* anchorPoint: { x: 0.5, y: 1.0 }
|
|
164
|
+
* });
|
|
165
|
+
* // add a physic body
|
|
166
|
+
* this.body = new me.Body(this, new me.Rect(0, 0, this.width, this.height));
|
|
167
|
+
* }
|
|
168
|
+
* }
|
|
169
|
+
*/
|
|
170
|
+
getAnimationSettings(names?: string[] | number[]): {
|
|
171
|
+
image: TextureAtlas;
|
|
172
|
+
framewidth: number;
|
|
173
|
+
frameheight: number;
|
|
174
|
+
margin: number;
|
|
175
|
+
spacing: number;
|
|
176
|
+
atlas: object[];
|
|
177
|
+
anims: {
|
|
178
|
+
[x: string]: object;
|
|
179
|
+
} | undefined;
|
|
180
|
+
atlasIndices: Record<string, number>;
|
|
181
|
+
};
|
|
139
182
|
/**
|
|
140
183
|
* Create an animation object using the first region found using all specified names
|
|
141
184
|
* @param {string[]|number[]} [names] - list of names for each sprite (if not specified all defined names/entries in the atlas will be added)
|
|
142
185
|
* (when manually creating a Texture out of a spritesheet, only numeric values are authorized)
|
|
143
|
-
* @param {object} [settings] - Additional settings passed to the {@link Sprite}
|
|
186
|
+
* @param {object} [settings] - Additional settings passed to the {@link Sprite} constructor
|
|
144
187
|
* @returns {Sprite}
|
|
145
188
|
* @example
|
|
146
189
|
* // create a new texture object under the `game` namespace
|
|
@@ -166,34 +209,10 @@ export class TextureAtlas extends Texture2d {
|
|
|
166
209
|
* // set the renderable position to bottom center
|
|
167
210
|
* sprite.anchorPoint.set(0.5, 1.0);
|
|
168
211
|
*/
|
|
169
|
-
|
|
170
|
-
* Return the Sprite settings object (framewidth, frameheight, atlas, atlasIndices, etc.)
|
|
171
|
-
* for the given set of atlas frame names. This is useful when extending {@link Sprite}
|
|
172
|
-
* and you need to pass atlas animation data to the parent constructor.
|
|
173
|
-
* @param {string[]|number[]} [names] - list of names for each sprite
|
|
174
|
-
* (when manually creating a Texture out of a spritesheet, only numeric values are authorized).
|
|
175
|
-
* If not specified, all defined names/entries in the atlas will be added.
|
|
176
|
-
* @returns {object} A settings object suitable for passing to the {@link Sprite} constructor
|
|
177
|
-
* @example
|
|
178
|
-
* // extend Sprite directly with texture atlas animation frames
|
|
179
|
-
* class MyPlayer extends me.Sprite {
|
|
180
|
-
* constructor(x, y, settings) {
|
|
181
|
-
* super(x, y, {
|
|
182
|
-
* ...game.texture.getAnimationSettings([
|
|
183
|
-
* "walk0001.png", "walk0002.png", "walk0003.png"
|
|
184
|
-
* ]),
|
|
185
|
-
* anchorPoint: { x: 0.5, y: 1.0 }
|
|
186
|
-
* });
|
|
187
|
-
* // add a physic body
|
|
188
|
-
* this.body = new me.Body(this, new me.Rect(0, 0, this.width, this.height));
|
|
189
|
-
* }
|
|
190
|
-
* }
|
|
191
|
-
*/
|
|
192
|
-
getAnimationSettings(names?: string[] | number[]): object;
|
|
193
|
-
createAnimationFromName(names: any, settings: any): Sprite;
|
|
212
|
+
createAnimationFromName(names?: string[] | number[], settings?: object): Sprite;
|
|
194
213
|
}
|
|
195
214
|
import Texture2d from "./texture2d.ts";
|
|
215
|
+
import type { CompressedImage } from "../../loader/parsers/compressed_textures/compressed_image.js";
|
|
196
216
|
import Sprite from "./../../renderable/sprite.js";
|
|
197
217
|
import NineSliceSprite from "./../../renderable/nineslicesprite.js";
|
|
198
|
-
import type { CompressedImage } from "../../loader/parsers/compressed_textures/compressed_image.js";
|
|
199
218
|
//# sourceMappingURL=atlas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atlas.d.ts","sourceRoot":"","sources":["../../../src/video/texture/atlas.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"atlas.d.ts","sourceRoot":"","sources":["../../../src/video/texture/atlas.js"],"names":[],"mappings":"AAkDA;;;GAGG;AAEH;;;;GAIG;AACH;;;;;;;;;;;;;;;;;;;EAoBC;AAED;;;;GAIG;AACH,+FAYC;AAED;;;;;;;;;;GAUG;AACH;IAUC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH,qBAjCW,MAAM,GAAC,MAAM,EAAE,QACf,gBAAgB,GAAC,iBAAiB,GAAC,eAAe,GAAC,eAAe,GAAC,MAAM,GAAC,eAAe,EAAE,GAAC,gBAAgB,EAAE,GAAC,iBAAiB,EAAE,GAAC,MAAM,EAAE,YAC3I,OAAO,GAAC,MAAM,EAwQxB;IAlOA;;;;OAIG;IACH,sBAAkB;IAElB;;;;;OAKG;IACH,uBAAwB;IAExB;;;;;;;OAOG;IACH,6BAA8B;IAE9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IACH,iCASC;IAED;;;;;;;;;;;OAWG;IACH,+BATW,MAAM,OAuBhB;IAED;;;;;;;;;OASG;IACH,kCAIC;IAED;;;;;OAKG;IACH,gCAFW,MAAM,OAShB;IAED;;;;OAIG;IACH,yCAEC;IAED;;;OAGG;IACH,yBAEC;IAED;;;;OAIG;IACH,iCAmCC;IAED;;;OAGG;IACH,yBAkBC;IAED;;;OAGG;IACH,gCAcC;CACD;
|
|
1
|
+
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../../src/video/texture/cache.js"],"names":[],"mappings":";AAgBA;;;;GAIG;AACH;IACC;;;OAGG;IACH,8CAgDC;IA9CA,cAAwB;IAExB,qBAAgC;IAChC,sBAAuB;IAavB,qBAAsB;IAOtB,4BAeE;IAMF,6BAA8B;IAI/B;;;;;;;OAOG;IACH,iBAJa,GAAG,CAAC,MAAM,CAAC,CAMvB;IAeD,mBARa,MAAM,EAUlB;IAfD;;;;;;;;OAQG;IACH,gBAJa,MAAM,CAMlB;IAMD;;;OAGG;IACH,cAKC;IAED;;;OAGG;IACH,8BAIC;IAED;;;;;;;;OAQG;IACH,kBAJW,MAAM,QAMhB;IAED;;;;;;OAMG;IACH,kBAJW,MAAM,QAWhB;IAED;;;;;OAKG;IACH,6BAIC;IAED;;;;;;;;;;;OAWG;IACH,oCAaC;IAED;;;;;;;;;OASG;IACH,iCASC;IAED;;;;;;;;;;;OAWG;IACH,+BATW,MAAM,OAuBhB;IAED;;;;;;;;;OASG;IACH,kCAIC;IAED;;;;;OAKG;IACH,gCAFW,MAAM,OAShB;IAED;;;;OAIG;IACH,yCAEC;IAED;;;OAGG;IACH,yBAEC;IAED;;;;;;OAMG;IACH,8BAIC;IAED;;;;OAIG;IACH,iCAmCC;IAED;;;OAGG;IACH,yBAkBC;IAED;;;OAGG;IACH,gCAcC;CACD;8BApY6B,+BAA+B;iCAE5B,wBAAwB"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The correction that puts a draw on whole pixels: each output coordinate
|
|
3
|
+
* `x` becomes `kx * x + ox`, and `y` becomes `ky * y + oy`.
|
|
4
|
+
*
|
|
5
|
+
* The transform maps the draw's local space to the renderer's:
|
|
6
|
+
* `x' = a * x + c * y + e`, `y' = b * x + d * y + f`.
|
|
7
|
+
* @ignore
|
|
8
|
+
* @param {number} a - transform, x scale
|
|
9
|
+
* @param {number} b - transform, y skew
|
|
10
|
+
* @param {number} c - transform, x skew
|
|
11
|
+
* @param {number} d - transform, y scale
|
|
12
|
+
* @param {number} e - transform, x translation
|
|
13
|
+
* @param {number} f - transform, y translation
|
|
14
|
+
* @param {number} x - the local box the draw covers
|
|
15
|
+
* @param {number} y - the local box the draw covers
|
|
16
|
+
* @param {number} w - the local box the draw covers
|
|
17
|
+
* @param {number} h - the local box the draw covers
|
|
18
|
+
* @param {number} [pad=0] - added around the box on every side, in local
|
|
19
|
+
* units: half the line width of a stroke, whose ink reaches past its path
|
|
20
|
+
* @returns {Float64Array|null} `[kx, ox, ky, oy]`, valid until the next call,
|
|
21
|
+
* or null when the draw is already on whole pixels or cannot be snapped
|
|
22
|
+
*/
|
|
23
|
+
export function pixelSnap(a: number, b: number, c: number, d: number, e: number, f: number, x: number, y: number, w: number, h: number, pad?: number): Float64Array | null;
|
|
24
|
+
/**
|
|
25
|
+
* Whether a `Matrix3d` is a 2D transform: x and y out depend on x and y in
|
|
26
|
+
* only, with no perspective. A `Camera3d` view is not.
|
|
27
|
+
* @ignore
|
|
28
|
+
* @param {Float32Array|number[]} v - the matrix values, column-major
|
|
29
|
+
* @returns {boolean}
|
|
30
|
+
*/
|
|
31
|
+
export function is2dTransform(v: Float32Array | number[]): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* The box around a list of points: the one a polygon covers, taken from the
|
|
34
|
+
* points it draws rather than from bounds that could be stale (a point moved
|
|
35
|
+
* without `recalc()`), since a draw is stretched to fit its box.
|
|
36
|
+
* @ignore
|
|
37
|
+
* @param {Array<{x: number, y: number}>} points - the points
|
|
38
|
+
* @returns {Float64Array} `[x, y, w, h]`, valid until the next call
|
|
39
|
+
*/
|
|
40
|
+
export function pointsBox(points: Array<{
|
|
41
|
+
x: number;
|
|
42
|
+
y: number;
|
|
43
|
+
}>): Float64Array;
|
|
44
|
+
//# sourceMappingURL=pixel_snap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pixel_snap.d.ts","sourceRoot":"","sources":["../../../src/video/utils/pixel_snap.js"],"names":[],"mappings":"AAqDA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,6BAfW,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,QACN,MAAM,GAEJ,YAAY,GAAC,IAAI,CA0C7B;AAED;;;;;;GAMG;AACH,iCAHW,YAAY,GAAC,MAAM,EAAE,GACnB,OAAO,CAanB;AAKD;;;;;;;GAOG;AACH,kCAHW,KAAK,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAC,CAAC,GAC3B,YAAY,CA2BxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batcher.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/batchers/batcher.js"],"names":[],"mappings":"AASA;;;;;;GAMG;AAEH;;;;;;;GAOG;AACH;IAkBC;;;OAGG;IACH,sBAHW,aAAa,YACb,MAAM,EAKhB;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,eAfW,aAAa,YAErB;QAA2B,UAAU,EACrC;YAAoC,IAAI,EAAhC,MAAM;YACsB,IAAI,EAAhC,MAAM;YACsB,IAAI,EAAhC,MAAM;YACuB,UAAU,EAAvC,OAAO;YACqB,MAAM,EAAlC,MAAM;SACd;QAAyB,MAAM,EAC/B;YAAgC,MAAM,EAA9B,MAAM;YACkB,QAAQ,EAAhC,MAAM;SACd;QAA0B,WAAW;QACV,OAAO;QACR,iBAAiB;KAC7C,QAuJA;IAjJA,QAAqB;IAGrB,iCAA2C;IAE3C;;;OAGG;IACH,oCAA8B;IAE9B;;;OAGG;IACH,oCAA8B;
|
|
1
|
+
{"version":3,"file":"batcher.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/batchers/batcher.js"],"names":[],"mappings":"AASA;;;;;;GAMG;AAEH;;;;;;;GAOG;AACH;IAkBC;;;OAGG;IACH,sBAHW,aAAa,YACb,MAAM,EAKhB;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,eAfW,aAAa,YAErB;QAA2B,UAAU,EACrC;YAAoC,IAAI,EAAhC,MAAM;YACsB,IAAI,EAAhC,MAAM;YACsB,IAAI,EAAhC,MAAM;YACuB,UAAU,EAAvC,OAAO;YACqB,MAAM,EAAlC,MAAM;SACd;QAAyB,MAAM,EAC/B;YAAgC,MAAM,EAA9B,MAAM;YACkB,QAAQ,EAAhC,MAAM;SACd;QAA0B,WAAW;QACV,OAAO;QACR,iBAAiB;KAC7C,QAuJA;IAjJA,QAAqB;IAGrB,iCAA2C;IAE3C;;;OAGG;IACH,oCAA8B;IAE9B;;;OAGG;IACH,oCAA8B;IAuZ/B;;OAEG;IACH,gBAFW,QAAQ,GAAC,MAAM,EASzB;IAxBD;;;;;;;;;OASG;IACH,YAHU,MAAM,CAKf;IA3YC;;;OAGG;IACH,iDAAuB;IAGxB;;;;OAIG;IACH,iCAAoB;IAEpB;;;;;OAKG;IACH,2BAAe;IAEf;;;;;OAKG;IACH,+BAAmB;IAEnB;;;;;OAKG;IACH,0CAAsB;IA4CtB;;;OAGG;IACH,sCAA0E;IAE1E;;;OAGG;IACH,oCAA+C;IAE/C;;;;;OAKG;IACH,+CAA0B;IAE1B;;;;;OAKG;IACH,iDAAuB;IAgBxB;;;;;;;OAOG;IACH,oBAJU,WAAW,CAMpB;IAED;;;;;;;;;;;OAWG;IACH,0BAiBC;IAoGD;;;;;;;;;OASG;IACH,2CA0BC;IAxBC,8CAAqC;IA0BvC;;;;;;;;;;;;OAYG;IACH,oBAaC;IAED;;;;OAIG;IACH,kBAFW,QAAQ,QA4BlB;IAHE,uCAA4B;IAmB/B;;OAEG;IACH,oBAFW,QAAQ,GAAC,MAAM,EAIzB;IAnBD;;;;;;;;;OASG;IACH,gBAHU,QAAQ,CAKjB;IAmCD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACH,mBAPW,MAAM,GAAC,MAAM,SACb,MAAM,GAAC,YAAY,SACnB,MAAM,GAAC,MAAM,eACb,OAAO,WACP,MAAM,wBA4BhB;IAoJD;;;OAGG;IACH,sBAFW,QAAQ,QAIlB;IAED;;;;OAIG;IACH,oBAFW,MAAM,EAAE,QAOlB;IAED;;;OAGG;IACH,aAFW,MAAM,QAqEhB;IACD;;;;;;;;OAQG;IACH,WAJa,OAAO,CAAC,IAAI,CAAC,CAMzB;;CACD;;wBApzB6C,sBAAsB;+BAUtC,wBAAwB;8BAC3B,2BAA2B;qBAPjC,gBAAgB;8BASV,uBAAuB;6BAVrB,0BAA0B;8BAJzB,wBAAwB;6BAGzB,oBAAoB;kCAUlB,2BAA2B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lit_quad_batcher.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/batchers/lit_quad_batcher.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lit_quad_batcher.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/batchers/lit_quad_batcher.js"],"names":[],"mappings":"AAsBA;;;;;GAKG;AAEH;;;;;;;;;;;;;;;GAeG;AACH;IAsFE;;;;;;;OAOG;IACH,6GAAiD;IAEjD;;;;;;;;OAQG;IACH,0CAAmD;IAoBnD,2CAAiD;IAEjD;;;;;;;;OAQG;IACH,2GAA4B;IAC5B;;;OAGG;IACH,iBAAoB;IAEpB;;;OAGG;IACH,gCAAoB;IACpB;;;OAGG;IACH,+BAA4B;IAuB5B,qCAIC;IACD;;;OAGG;IACH,wBAA8B;IAW7B,kEAEC;IAsCH;;;;;;;;;;;;;;OAcG;IACH,wBAQC;IAED;;;;;OAKG;IACH,sBAFW,gBAAgB,GAAC,iBAAiB,GAAC,eAAe,GAAC,WAAW,QAaxE;IAiFD;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,2BANG;QAA+B,SAAS,EAAhC,YAAY;QACW,MAAM,EAA7B,YAAY;QACY,OAAO;QACd,KAAK,EAAtB,MAAM;QACc,OAAO;KACrC,QAMA;IAED;;;;;;;;;OASG;IACH,qBAHW,gBAAgB,GAAC,iBAAiB,GAAC,eAAe,GAAC,WAAW,QAC9D,MAAM,QAqChB;IAED;;;;;;;;;;OAUG;IACH,yBAJW,gBAAgB,GAAC,iBAAiB,GAAC,eAAe,GAAC,WAAW,QAcxE;IAED;;;;;;;;;;;;;;OAcG;IACH,6BALW,gBAAgB,GAAC,iBAAiB,GAAC,eAAe,GAAC,WAAW,GAC5D,MAAM,CAuClB;IAED;;;;;;;;;;;;;;OAcG;IACH,iBAbW,YAAY,KACZ,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,QACN,MAAM,aACN,OAAO,cACP,gBAAgB,GAAC,iBAAiB,GAAC,IAAI,QAiIjD;CAiFD;wBA1vBuB,mBAAmB;kCADT,qBAAqB;yBAT9B,2BAA2B;kCAoBrB,0BAA0B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"material_batcher.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/batchers/material_batcher.js"],"names":[],"mappings":"AAkCA;;;;GAIG;AACH;IACC;;;;OAIG;IACH,yCA2DC;IAmCD,6BARU,MAAM,EAUf;IAnBD;;;;;;;;;;;;OAYG;IACH,0BAJU,MAAM,CAMf;IArFA;;;;OAIG;IACH,iCAAuB;IAEvB;;;;;;;;;;OAUG;IACH,oCAA2B;IAyB1B;;;OAGG;IACH,+CAEC;IAKH;;;;;;;;OAQG;IACH,6BAKC;IAyDD;;;;;;;;;;;;;OAaG;IACH,sBAZW,MAAM,WACN,8DAAM,iBAAiB,GAAC,SAAS,GAAC,UAAU,EAAE,GAAC,YAAY,EAAE,GAAC,IAAI,uBAClE,MAAM,WACN,MAAM,MACN,MAAM,MACN,MAAM,uBACN,OAAO,WACP,OAAO,YACP,YAAY,UACZ,OAAO,GACL,YAAY,CAuMxB;IAED;;;OAGG;IACH,yBAFW,YAAY,GAAC,YAAY,QAuCnC;IAED;;;;OAIG;IACH,mBAHW,MAAM,GACJ,YAAY,CAIxB;IAED;;;;OAIG;IACH,uBAHW,YAAY,QACZ,MAAM,yBAsBhB;IAED;;;;;OAKG;IACH;;;;;;;;;OASG;IACH,uBAJW,MAAM,QAMhB;IAED,8CAWC;IAED;;;;;;;;;;;;OAYG;IACH,qBAJW,MAAM,QAShB;IAED;;;;;;;;;;;;;;;OAeG;IACH,uBAbW,YAAY,GAAC,eAAe,MAC5B,MAAM,MAGN,MAAM,UACN,OAAO,UACP,OAAO,WACP,MAAM,
|
|
1
|
+
{"version":3,"file":"material_batcher.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/batchers/material_batcher.js"],"names":[],"mappings":"AAkCA;;;;GAIG;AACH;IACC;;;;OAIG;IACH,yCA2DC;IAmCD,6BARU,MAAM,EAUf;IAnBD;;;;;;;;;;;;OAYG;IACH,0BAJU,MAAM,CAMf;IArFA;;;;OAIG;IACH,iCAAuB;IAEvB;;;;;;;;;;OAUG;IACH,oCAA2B;IAyB1B;;;OAGG;IACH,+CAEC;IAKH;;;;;;;;OAQG;IACH,6BAKC;IAyDD;;;;;;;;;;;;;OAaG;IACH,sBAZW,MAAM,WACN,8DAAM,iBAAiB,GAAC,SAAS,GAAC,UAAU,EAAE,GAAC,YAAY,EAAE,GAAC,IAAI,uBAClE,MAAM,WACN,MAAM,MACN,MAAM,MACN,MAAM,uBACN,OAAO,WACP,OAAO,YACP,YAAY,UACZ,OAAO,GACL,YAAY,CAuMxB;IAED;;;OAGG;IACH,yBAFW,YAAY,GAAC,YAAY,QAuCnC;IAED;;;;OAIG;IACH,mBAHW,MAAM,GACJ,YAAY,CAIxB;IAED;;;;OAIG;IACH,uBAHW,YAAY,QACZ,MAAM,yBAsBhB;IAED;;;;;OAKG;IACH;;;;;;;;;OASG;IACH,uBAJW,MAAM,QAMhB;IAED,8CAWC;IAED;;;;;;;;;;;;OAYG;IACH,qBAJW,MAAM,QAShB;IAED;;;;;;;;;;;;;;;OAeG;IACH,uBAbW,YAAY,GAAC,eAAe,MAC5B,MAAM,MAGN,MAAM,UACN,OAAO,UACP,OAAO,WACP,MAAM,OAiHhB;CACD;6BAroB4B,cAAc;kCAIZ,0BAA0B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mesh_batcher.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/batchers/mesh_batcher.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mesh_batcher.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/batchers/mesh_batcher.js"],"names":[],"mappings":"AAiGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH;IACC;;;;OAIG;IACH,0BA2HC;IAjHA,wBAA4B;IAI5B,sBAA0B;IAC1B,sBAA0B;IAC1B,sBAA0B;IAI1B,sBAA0B;IAC1B,sBAA0B;IAC1B,sBAA0B;IAC1B,sBAA0B;IAI1B,yBAA6B;IAC7B,wBAA4B;IAG5B,0BAA8B;IAC9B,yBAA6B;IAI7B,iBAA6B;IAC7B,iBAA6B;IAC7B,iBAA6B;IAI7B,oBAAgC;IAChC,oBAAgC;IAChC,wBAAoC;IACpC,uBAAmC;IACnC,iBAA6B;IAC7B,iBAA6B;IAC7B,iBAA6B;IAC7B,qBAAiC;IACjC,qBAAiC;IACjC,qBAAiC;IACjC,oBAAgC;IAQhC,oCAAyB;IAQzB,qCAA0B;IAS1B,0CAA+B;IAO/B,sBAAiC;IAKjC,+CAAsC;IAMtC,o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;;;;;;;;;;;;OAeG;IACH;;;OAGG;IACH,kBAHW,MAAM,EAAE,iBAkDlB;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,yBANW,MAAM,EAAE,GAEN,OAAO,CAAC,IAAI,CAAC,CAiBzB;IAED;;;;;;;;;OASG;IACH,iBAJa,OAAO,CAMnB;IAED;;;;;;;;;;;OAWG;IACH,sBAJa,OAAO,CASnB;IAED;;;;;OAKG;IACH,mCAWC;IAED;;;;;OAKG;IACH;;;MAEC;IAED;;;;;;;;OAQG;IACH,kCALW,MAAM,GACJ,MAAM,EAAE,CAepB;IAED;;;;;;;;;;;;OAYG;IACH,wBANW,aAAa,eACb,QAAQ,QACR,MAAM,QAuFhB;IAED;;;;;;;;;;OAUG;IACH,yBAJa,QAAQ,CAoBpB;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,8BANW,aAAa,gBACb,MAAM,GACJ,MAAM,CAoElB;IAED;;;;;;;;;OASG;IACH,0BAPW,aAAa,gBACb,QAAQ,QACR,MAAM,QACN,MAAM,QAgChB;IAED;;;;;OAKG;IACH,uBAJW,MAAM,QAYhB;IAED;;;;OAIG;IACH,4BAOC;IAED;;;;;OAKG;IACH,sBAJW,MAAM,QAWhB;IAED;;;;OAIG;IACH,2BAMC;IAED;;;;;;;;;;;;OAYG;IACH,gCAJW,QAAQ,QAsBlB;IAED,mEAmIC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,wBAbW,MAAM,YACN,YAAY,cAGZ,YAAY,GAKV,MAAM,CA2MlB;IAED;;;;;;;;OAQG;IACH,sBAJW,MAAM,QAYhB;IAED,oCA0BC;IAED;;;;;;;;OAQG;IACH,sBANW,MAAM,QACN,MAAM,UACN,MAAM,QAsFhB;CACD;gCAh/D+B,uBAAuB;6BAR1B,gCAAgC;yBAhBpC,2BAA2B;qBAkB/B,gBAAgB"}
|
|
@@ -29,8 +29,9 @@ export default class QuadBatcher extends MaterialBatcher {
|
|
|
29
29
|
* @param {number} width - destination width
|
|
30
30
|
* @param {number} height - destination height
|
|
31
31
|
* @param {GLShader|ShaderEffect} shader - the shader effect to apply
|
|
32
|
+
* @param {number} [alpha=1] - the opacity to composite at (0.0 to 1.0)
|
|
32
33
|
*/
|
|
33
|
-
blitTexture(source: WebGLTexture, x: number, y: number, width: number, height: number, shader: GLShader | ShaderEffect): void;
|
|
34
|
+
blitTexture(source: WebGLTexture, x: number, y: number, width: number, height: number, shader: GLShader | ShaderEffect, alpha?: number): void;
|
|
34
35
|
/**
|
|
35
36
|
* Add a textured quad
|
|
36
37
|
* @param {TextureAtlas} texture - Source texture atlas
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quad_batcher.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/batchers/quad_batcher.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"quad_batcher.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/batchers/quad_batcher.js"],"names":[],"mappings":"AAeA;;;;;GAKG;AAEH;;;;GAIG;AACH;IACC;;;;OAIG;IACH,0BAoEC;IAnEA;;;;;OAKG;IAMH,qCAA4C;IA8C5C;;;;;;OAMG;IACH,qCAA2B;IAK5B;;;;;OAKG;IACH,0BAmBC;IAED;;;;;OAKG;IACH,0BAIC;IAED;;;;;;;;;OASG;IACH,uBAuBC;IAXA;;;;OAIG;IACH,iBAAuB;IACvB;;;OAGG;IACH,uBAA+B;IAGhC;;;;;;;OAOG;IACH,kBAFW,QAAQ,GAAC,YAAY,QAK/B;IAyDD;;;;;;;;;;;OAWG;IACH,oBARW,YAAY,KACZ,MAAM,KACN,MAAM,SACN,MAAM,UACN,MAAM,UACN,QAAQ,GAAC,YAAY,UACrB,MAAM,QAmFhB;IAED;;;;;;;;;;;;;OAaG;IACH,iBAZW,YAAY,KACZ,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,QACN,MAAM,aACN,OAAO,QAiGjB;CACD;gCA3b+B,uBAAuB;0BAW9B,gBAAgB;8BACZ,+BAA+B;kCAF7B,0BAA0B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glshader.d.ts","sourceRoot":"","sources":["../../../src/video/webgl/glshader.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"glshader.d.ts","sourceRoot":"","sources":["../../../src/video/webgl/glshader.js"],"names":[],"mappings":"AAgBA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH;IACC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwCG;IACH,gBAxCW,qBAAqB,GAAC,SAAS,UAK/B,MAAM,GAAC,MAAM,aAGb,MAAM,cACN,MAAM,EA8LhB;IAlJA;;;OAGG;IACH,IAFU,qBAAqB,CAEnB;IAEZ;;;;;OAKG;IACH,kBAHU,OAAO,CAIwD;IAEzE;;;;;OAKG;IACH,mBAHU,OAAO,CAGuB;IAExC;;;OAGG;IACH,MAFU,MAAM,GAAC,SAAS,CAEV;IAEhB;;;;OAIG;IACH,OAFU,MAAM,GAAC,SAAS,CAER;IAIlB,mBAAqB;IAKrB;;;OAGG;IACH;;;MAAwD;IAWxD;;;;;;;OAOG;IACH,oBAHU,OAAO,CAGK;IAEtB;;;;;;;;;OASG;IACH,QAHU,OAAO,CAGE;IAEnB;;;;;;;;;;OAUG;IACH,oBAHU,OAAO,CAGK;IAGtB;;;OAGG;IACH,+BAA2B;IAC3B;;;OAGG;IACH,oCAA+B;IAC/B;;;OAGG;IACH,+BAA2B;IAG3B;;;OAGG;IACH,mBAAwC;IAExC;;;;;;OAMG;IACH,OAJU,MAAM,GAAC,SAAS,CAIJ;IAMpB,sBAAmB;IACnB,iBAAoB;IACpB,qBAAsB;IAgBzB;;;;;;;;OAQG;IACH,iBA0CC;IAzCA,YAGC;IACD,cAGC;IAoCF;;;;;;;OAOG;IACH,uBAgBC;IAED;;;;;;;OAOG;IACH,2BAMC;IAED;;OAEG;IACH,aAcC;IAED;;;;OAIG;IACH,wBAHW,MAAM,GACJ,KAAK,CAcjB;IAED;;;;;;OAMG;IACH,oBASC;IAED;;;;;;;;;;;OAWG;IACH,iBAVW,MAAM,SACN,MAAM,GAAC,OAAO,GAAC,MAAM,EAAE,GAAC,YAAY,GAAC,MAAM,QA0DrD;IAED;;;;;;;;;;;;;OAaG;IACH,wBAJW,qBAAqB,cACrB,MAAM,EAAE,UACR,MAAM,QAmBhB;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,SAFa,QAAQ,CA8BpB;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,oBAVW,MAAM,QACN,MAAM,oBACN,kBAAkB,EAAE,mBACpB,MAAM,GACJ,MAAM,GAAC,IAAI,CAiFvB;IAED;;;;;OAKG;IACH,gBAkCC;CACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orthogonal.d.ts","sourceRoot":"","sources":["../../../../../src/video/webgl/renderers/tmxlayer/orthogonal.js"],"names":[],"mappings":"AAeA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH;IACC;;OAEG;IACH,sBAFW,aAAa,EA0CvB;IAvCA,wBAAwB;IACxB,0BAAqB;IAUrB,iBAKC;IAMD,yBAA0B;IAI1B,2BAA4B;IAG5B;;;OAGG;IACH,+BAA8B;IAC9B;;;OAGG;IACH,+BAA8B;IAG/B;;;;;;OAMG;IACH,cAiCC;IAED;;;;;;;;;;;OAWG;IACH,eAIC;IAED;;;;;;;;;;OAUG;IACH,eAMC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,gCARW,MAAM,aACN,MAAM,GAEJ;QAAC,QAAQ,EAAE,qBAAqB,CAAC;QAAC,IAAI,EAAE,UAAU,CAAC;QAC3D,SAAS,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAC,GAAC,SAAS,CAiDhD;IAED;;;;;;OAMG;IACH,oBALW,QAAQ,GACN,qBAAqB,CA+BjC;IAED;;;;OAIG;IACH,YAHW,QAAQ,QACR,MAAM,
|
|
1
|
+
{"version":3,"file":"orthogonal.d.ts","sourceRoot":"","sources":["../../../../../src/video/webgl/renderers/tmxlayer/orthogonal.js"],"names":[],"mappings":"AAeA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH;IACC;;OAEG;IACH,sBAFW,aAAa,EA0CvB;IAvCA,wBAAwB;IACxB,0BAAqB;IAUrB,iBAKC;IAMD,yBAA0B;IAI1B,2BAA4B;IAG5B;;;OAGG;IACH,+BAA8B;IAC9B;;;OAGG;IACH,+BAA8B;IAG/B;;;;;;OAMG;IACH,cAiCC;IAED;;;;;;;;;;;OAWG;IACH,eAIC;IAED;;;;;;;;;;OAUG;IACH,eAMC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,gCARW,MAAM,aACN,MAAM,GAEJ;QAAC,QAAQ,EAAE,qBAAqB,CAAC;QAAC,IAAI,EAAE,UAAU,CAAC;QAC3D,SAAS,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAC,GAAC,SAAS,CAiDhD;IAED;;;;;;OAMG;IACH,oBALW,QAAQ,GACN,qBAAqB,CA+BjC;IAED;;;;OAIG;IACH,YAHW,QAAQ,QACR,MAAM,QAkLhB;CACD;8CA5b4C,yBAAyB;qBAPjD,mBAAmB;sCADF,8BAA8B;yCAO5B,qCAAqC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frameclamp.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/shaders/frameclamp.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH;;;;;;;;;;;;;;;;GAgBG;AACH,q1BAmBE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multitexture-lit.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/shaders/multitexture-lit.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"multitexture-lit.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/shaders/multitexture-lit.js"],"names":[],"mappings":"AA2CA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,0DALW,MAAM,GACJ,MAAM,CAmJlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multitexture.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/shaders/multitexture.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"multitexture.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/shaders/multitexture.js"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,uDALW,MAAM,GACJ,MAAM,CA8ClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uniforms.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/utils/uniforms.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"uniforms.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/utils/uniforms.js"],"names":[],"mappings":"AAiCA;;;;;;;GAOG;AACH,4DAoBC;AAED;;;;;;;GAOG;AACH,uDAoBC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,0DAmEC"}
|
|
@@ -132,27 +132,6 @@ export default class WebGLRenderer extends Renderer {
|
|
|
132
132
|
* let basic = renderer.createPattern(image, "no-repeat");
|
|
133
133
|
*/
|
|
134
134
|
createPattern(image: HTMLImageElement | SVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas | VideoFrame, repeat?: string): TextureAtlas;
|
|
135
|
-
/**
|
|
136
|
-
* Upload per-frame Light2d uniforms used by the lit sprite pipeline.
|
|
137
|
-
*
|
|
138
|
-
* Packs the active lights into pre-allocated scratch buffers, then
|
|
139
|
-
* forwards to `LitQuadBatcher`. Light positions are translated from
|
|
140
|
-
* world-space (where `light.getBounds().centerX/Y` lives) into the
|
|
141
|
-
* renderer's pre-projection coords by subtracting `(translateX, translateY)`,
|
|
142
|
-
* matching what `Stage.drawLighting` does for the cutout pass — so
|
|
143
|
-
* the lit fragment's `lightPos - vWorldPos` math lines up with the
|
|
144
|
-
* camera's view.
|
|
145
|
-
*
|
|
146
|
-
* Lights past `MAX_LIGHTS` are silently dropped. Also caches the
|
|
147
|
-
* active light count on the renderer so `drawImage` can dispatch
|
|
148
|
-
* normal-mapped sprites to the lit batcher only when there's
|
|
149
|
-
* something to light them with.
|
|
150
|
-
* @param {Iterable<object>} [lights] - active `Light2d` instances; falsy/empty no-ops the lit pipeline
|
|
151
|
-
* @param {object} [ambient] - ambient lighting color (0..255 RGB); defaults to black
|
|
152
|
-
* @param {number} [translateX=0] - world-to-screen X translate (matches `Camera2d.draw()`)
|
|
153
|
-
* @param {number} [translateY=0] - world-to-screen Y translate
|
|
154
|
-
*/
|
|
155
|
-
setLightUniforms(lights?: Iterable<object>, ambient?: object, translateX?: number, translateY?: number): void;
|
|
156
135
|
/**
|
|
157
136
|
* Capture the current frame — everything drawn to the active framebuffer so
|
|
158
137
|
* far — into a {@link Texture2d}, entirely on the GPU (a `copyTexImage2D` on
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webgl_renderer.d.ts","sourceRoot":"","sources":["../../../src/video/webgl/webgl_renderer.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"webgl_renderer.d.ts","sourceRoot":"","sources":["../../../src/video/webgl/webgl_renderer.js"],"names":[],"mappings":"AAkIA;;;GAGG;AACH;IAQE;;;;;OAKG;IACH,oBAJU,MAAM,CAIU;IAU1B;;;OAGG;IACH,IAFU,qBAAqB,CAEI;IAEnC;;;;;OAKG;IAMH;;;;;;;OAOG;IACH,2BAA4B;IAQ5B;;;;;;;;;OASG;IACH,cAJU,MAAM,CAIiB;IAQjC;;;OAGG;IACH,oCAeE;IAEF;;;;;OAKG;IAIH;;;OAGG;IACH,8BAAgC;IAEhC;;;;;;;OAOG;IACH,mBAJU,MAAM,EAAE,CAIS;IAC3B;;;OAGG;IACH,yBAAyB;IAEzB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;;;OASG;IACH,gBAPW,QAAQ,GAAC,QAAQ,GAAC,MAAM,MACxB,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,QAKhB;IAED;;;;;;;;;OASG;IACH,aAPW,QAAQ,GAAC,QAAQ,GAAC,MAAM,MACxB,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,QA6BhB;;CAqLD;qBAl8IoB,kBAAkB;6BACV,uCAAuC;wBAJ5C,2BAA2B;8BAKrB,sCAAsC;+BAsBrC,yBAAyB;uBA9CjC,yBAAyB;yBADvB,wBAAwB;6BAmCpB,uBAAuB;yBAR3B,uBAAuB;oBA9B5B,2BAA2B;iCAwBd,8BAA8B;+BAFhC,4BAA4B;6BAOjB,uBAAuB;0CAiBvB,oCAAoC;0BAiBrD,eAAe;0CAFD,yBAAyB;6BA9BnC,8BAA8B;sBA7B1B,uBAAuB;qCA4DtB,8DAA8D;6BANtE,6BAA6B;8BAG5B,wBAAwB"}
|
|
@@ -78,9 +78,10 @@ export default class WebGPULitQuadBatcher extends WebGPUQuadBatcher {
|
|
|
78
78
|
* @param {number} v1 - texture UV (v1)
|
|
79
79
|
* @param {number} tint - tint color in UINT32 (argb) format
|
|
80
80
|
* @param {number} [textureId=0] - the segment slot
|
|
81
|
+
* @param {boolean} [framed=true] - false when the quad has no frame to keep to
|
|
81
82
|
* @override
|
|
82
83
|
*/
|
|
83
|
-
override pushQuadVertices(x: number, y: number, w: number, h: number, u0: number, v0: number, u1: number, v1: number, tint: number, textureId?: number): void;
|
|
84
|
+
override pushQuadVertices(x: number, y: number, w: number, h: number, u0: number, v0: number, u1: number, v1: number, tint: number, textureId?: number, framed?: boolean): void;
|
|
84
85
|
/**
|
|
85
86
|
* lit draws bind the combined material at 1 and the light block at 2
|
|
86
87
|
* @override
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lit_quad_batcher.d.ts","sourceRoot":"","sources":["../../../../src/video/webgpu/batchers/lit_quad_batcher.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lit_quad_batcher.d.ts","sourceRoot":"","sources":["../../../../src/video/webgpu/batchers/lit_quad_batcher.js"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;;;;GAiBG;AACH;IACC;;OAEG;IACH,kDAmGC;IA9CA,uBAQE;IACF,kBAaE;IAcF,iDAA+C;IAE/C,2CAAgC;IAEhC;;;;yBAAwB;IAGxB,wCAA6B;IAE7B,0CAA+B;IAGhC;;;;OAIG;IACH,yBAFW,MAAM,QAuChB;IAED;;;;;;OAMG;IACH,gCAHW,MAAM,GACJ,OAAO,CAInB;IAED;;;;;;;OAOG;IACH,0BALW,gBAAgB,GAAC,iBAAiB,GAAC,eAAe,GAAC,WAAW,GAC5D,MAAM,CAuDlB;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,0BAdW,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,QACN,MAAM,aACN,OAAO,cACP,MAAM,QA8EhB;IAfA,yCAA0D;IAiB3D;;;;;;;;;;;;;;;OAeG;IACH,6BAbW,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,QACN,MAAM,cACN,MAAM,WACN,OAAO,QAuCjB;IAyBD;;;OAGG;IACH,uDASC;CAuBD;8BAhc6B,mBAAmB"}
|
|
@@ -50,7 +50,6 @@ export default class WebGPUMeshBatcher extends WebGPUBatcher {
|
|
|
50
50
|
instanced: Map<any, any> | undefined;
|
|
51
51
|
instancedKeys: Map<any, any> | undefined;
|
|
52
52
|
shadowFamilyKeys: Map<any, any> | undefined;
|
|
53
|
-
instancedShaderWarned: boolean | undefined;
|
|
54
53
|
/**
|
|
55
54
|
* Add a textured mesh to the batch (the accumulated path: vertices
|
|
56
55
|
* already CPU-projected, identity model matrix). Chunks triangles
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mesh_batcher.d.ts","sourceRoot":"","sources":["../../../../src/video/webgpu/batchers/mesh_batcher.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mesh_batcher.d.ts","sourceRoot":"","sources":["../../../../src/video/webgpu/batchers/mesh_batcher.js"],"names":[],"mappings":"AAgCA;;;;;;;;;GASG;AACH,gCAAiC,GAAG,CAAC;AAWrC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH;IACC;;;OAGG;IACH,wBAHW,OAAO,uBAAuB,EAAE,OAAO,uBAyFjD;IA/EA,2CAUE;IAuBF,oCAAsC;IAItC,kBAAwB;IACxB,kBAAwB;IAIxB,gDAA+D;IAC/D,gBAAmB;IAGnB,qBAA2B;IAE3B;mBA8dwB,YAAY;iBAAW,MAAM,EAAE;;;;yBA9d7B;IAE1B,6CAAkC;IAKlC,4CAAiC;IAGjC;;;kBAAuD;IAQvD,oCAAyB;IAQzB,qCAA0B;IAC1B,yCAA8B;IAG9B,4CAAiC;IAGlC;;;;;OAKG;IACH;;;;;MAEC;IAED;;;;;;;;;;;;;OAaG;IACH,2BALW,MAAM,GACJ,MAAM,CAoClB;IAED;;;;;;;OAOG;IACH,wBALW,aAAa,GACX,oBAAoB,CAwBhC;IAED;;;;;;;OAOG;IACH,wBANW,aAAa,eACb,QAAQ,QACR,MAAM,QAwFhB;IAED;;;;;;;;;;;OAWG;IACH,8BALW,MAAM,GACJ,MAAM,CA6ClB;IAED;;;;;;;;;OASG;IACH,0BAPW,aAAa,gBACb,QAAQ,QACR,MAAM,QACN,MAAM,QA8DhB;IAED;;;;;OAKG;IACH,uBAJW,MAAM,QAUhB;IAED;;;;OAIG;IACH,4BAKC;IAED;;;;;OAKG;IACH;;;;;;;;MAMC;IAED;;;;OAIG;IACH,oBAEC;IAED;;;;;;;OAOG;IACH;;;;QAkBC;IAED;;;;OAIG;IACH,2BAEC;IAED;;;;;;;;;;;;;OAaG;IACH,2BALW,MAAM,GACJ,kBAAkB,CAgC9B;IAED;;;;;;;;;;;OAWG;IACH,yBARW,SAAS,YACT,MAAM,UACN,MAAM,cACN,MAAM,GACJ;QAAC,SAAS,EAAE,YAAY,CAAC;QAAC,OAAO,EAAE,MAAM,EAAE,CAAA;KAAC,CA0DxD;IAED;;;;;;;;;;;;OAYG;IACH,mBAJa,MAAM,CA0ClB;IA/BE;;;kBAA0D;IAiC7D;;;;;OAKG;IACH,uCAOC;IAED;;;;;;;;;;;;;;OAcG;IACH,iBAJa,kBAAkB,CAQ9B;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,wBAZW,MAAM,YACN,YAAY,cAGZ,YAAY,QAqCtB;IAED;;;;;;;;;;;OAWG;IACH,kCAPW,QAAQ,QAER,MAAM,QACN,MAAM,QAiIhB;IAED;;;;;;OAMG;IACH,4GAEC;IAED;;;;;;;;OAQG;IACH,cAHW,MAAM,QACN,MAAM,QAsBhB;IAED;;;;;;;;OAQG;IACH,sBANW,MAAM,QACN,MAAM,UACN,MAAM,QAuEhB;IAED;;;;;;OAMG;IACH,uBAyEC;IAED;;;;;OAKG;IACH,4BAEC;IAED;;;;;;;;;OASG;IACH,8BANW,MAAM,OACN,YAAY,GACV,MAAM,CAMlB;IAED;;;;;;;OAOG;IACH,0BALW,MAAM,GACJ,sBAAsB,CAiBlC;IAED;;;;;;;;;;;;;;OAcG;IACH,uBANW,MAAM,eACN,QAAQ,QACR,MAAM,QAkFhB;IAED;;;;;OAKG;IACH,sBAJW,MAAM,QAWhB;IAED;;;;OAIG;IACH,2BAMC;CAwBD;0BA5yCyB,qBAAqB;iCARd,8BAA8B;yBAVtC,2BAA2B;mCAWjB,gCAAgC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The WebGPU quad batcher — textured-quad accumulation with the same
|
|
3
|
-
* frozen
|
|
3
|
+
* frozen 36-byte vertex layout as the WebGL `QuadBatcher` and the same
|
|
4
4
|
* static 6-indices-per-quad pattern.
|
|
5
5
|
*
|
|
6
6
|
* Texture batching is single-texture-per-draw-segment in this first
|
|
@@ -21,7 +21,7 @@ export default class WebGPUQuadBatcher extends WebGPUBatcher {
|
|
|
21
21
|
*/
|
|
22
22
|
override init(renderer: import("../webgpu_renderer.js").default, settings: any): void;
|
|
23
23
|
currentMaterial: any;
|
|
24
|
-
currentEffect:
|
|
24
|
+
currentEffect: object | null | undefined;
|
|
25
25
|
/** @type {{view: GPUTextureView, sampler: GPUSampler}[]} indexed by slot */
|
|
26
26
|
segmentEntries: {
|
|
27
27
|
view: GPUTextureView;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quad_batcher.d.ts","sourceRoot":"","sources":["../../../../src/video/webgpu/batchers/quad_batcher.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"quad_batcher.d.ts","sourceRoot":"","sources":["../../../../src/video/webgpu/batchers/quad_batcher.js"],"names":[],"mappings":"AAeA;;;;;;;;;;;;;;;GAeG;AACH;IACC;;;OAGG;IACH,wBAHW,OAAO,uBAAuB,EAAE,OAAO,uBAmJjD;IAnGA,qBAA2B;IAM3B,yCAAyB;IAEzB;;;;;OAKG;IACH,gDAIC;IASD;;;OAGG;IACH,wCAcE;IAHC,eAAqB;IAIxB,4EAA4E;IAC5E;cADkB,cAAc;iBAAW,UAAU;oBAC7B;IAOxB;;;OAGG;IACH,iBAAuB;IACvB;;;OAGG;IACH,eAAqB;IACrB;;;OAGG;IACH,kBAAyB;IACzB;;;OAGG;IACH,8BAAkB;IAElB,8CAAwB;IAIxB,wCAAwC;IACxC,sDAA+B;IAE/B,8CAAgC;IAChC,mCAAuB;IAQvB,0CAKE;IAKH;;;;;;;;;;;;;;;OAeG;IACH,iBAZW,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,QACN,MAAM,aACN,OAAO,QAyGjB;IAED;;;;;;;;OAQG;IACH,oBAJW,MAAM,GAAC,IAAI,QAcrB;IAED;;;;;;;OAOG;IACH,sBALW,MAAM,GACJ,OAAO,CAcnB;IAED;;;;;;;;;;;OAWG;IACH,wBANW,MAAM,YACN,OAAO,GACL,MAAM,CAkElB;IAED;;;;OAIG;IACH,+BAOC;IAED;;;;;;;;OAQG;IACH,uBAJa,YAAY,CAgCxB;IAED;;;;OAIG;IACH,qBAQC;IAED;;;;;OAKG;IACH,2BAGC;IAED;;;;;;;;;;;OAWG;IACH,4IAoCC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,oBAXW,OAAO,0CAA0C,EAAE,OAAO,KAC1D,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,WACN,YAAY,cACZ,OAAO,UACP,MAAM,QA0EhB;IAqBD;;OAEG;IACH,oCA6BC;IAED;;;;;;OAMG;IACH,8BAEC;IAED;;;;;;;OAOG;IACH,yBAJW,MAAM,QAwChB;CAwBD;0BA7vByB,qBAAqB;iCAHd,2BAA2B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uniformring.d.ts","sourceRoot":"","sources":["../../../../src/video/webgpu/buffer/uniformring.js"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH;IACC;;;;OAIG;IACH,oBAJW,SAAS,eACT,kBAAkB,eAClB,kBAAkB,EAiB5B;IAdA,kBAAoB;IACpB,gCAA8B;IAC9B,gCAA8B;IAC9B,iBAGC;IACD,qBAAsB;IACtB,iBAAiD;IACjD,wFAAwF;IACxF,OADW;QAAC,MAAM,EAAE,SAAS,CAAC;QAAC,UAAU,EAAE,YAAY,CAAC;QAAC,UAAU,EAAE,YAAY,CAAA;KAAC,EAAE,CACrE;IACf,aAAa;IAEb,mCAAuD;IAGxD;;OAEG;IACH,cAEC;IA4CD
|
|
1
|
+
{"version":3,"file":"uniformring.d.ts","sourceRoot":"","sources":["../../../../src/video/webgpu/buffer/uniformring.js"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH;IACC;;;;OAIG;IACH,oBAJW,SAAS,eACT,kBAAkB,eAClB,kBAAkB,EAiB5B;IAdA,kBAAoB;IACpB,gCAA8B;IAC9B,gCAA8B;IAC9B,iBAGC;IACD,qBAAsB;IACtB,iBAAiD;IACjD,wFAAwF;IACxF,OADW;QAAC,MAAM,EAAE,SAAS,CAAC;QAAC,UAAU,EAAE,YAAY,CAAC;QAAC,UAAU,EAAE,YAAY,CAAA;KAAC,EAAE,CACrE;IACf,aAAa;IAEb,mCAAuD;IAGxD;;OAEG;IACH,cAEC;IA4CD;;;;;;;OAOG;IACH,6CAJW,MAAM,eACN,MAAM,GACJ;QAAC,SAAS,EAAE,YAAY,CAAC;QAAC,aAAa,EAAE,MAAM,CAAA;KAAC,CAgB5D;IAED;;;;;;;OAOG;IACH,kBANW,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,GACJ;QAAC,SAAS,EAAE,YAAY,CAAC;QAAC,aAAa,EAAE,MAAM,CAAA;KAAC,CAiB5D;IAED;;OAEG;IACH,gBAMC;;CACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"effect_binding.d.ts","sourceRoot":"","sources":["../../../src/video/webgpu/effect_binding.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"effect_binding.d.ts","sourceRoot":"","sources":["../../../src/video/webgpu/effect_binding.js"],"names":[],"mappings":"AAoCA;;;;;;;;GAQG;AACH;;;;;;;;;;;;;;GAcG;AACH,yCANW,MAAM,UACN,MAAM,eACN,MAAM,QA0KhB;AAqCD;;;;;;;;;;GAUG;AACH,+CAPW,OAAO,sBAAsB,EAAE,OAAO,UACtC,OAAO,4BAA4B,EAAE,OAAO,GAC1C;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,cAAc,EAAE,OAAO,CAAC;IAAC,SAAS,EAAE,YAAY,GAAC,IAAI,CAAC;IAAC,cAAc,EAAE,MAAM,EAAE,CAAA;CAAC,GAAC,IAAI,CAgJ/G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orthogonal.d.ts","sourceRoot":"","sources":["../../../../../src/video/webgpu/renderers/tmxlayer/orthogonal.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"orthogonal.d.ts","sourceRoot":"","sources":["../../../../../src/video/webgpu/renderers/tmxlayer/orthogonal.js"],"names":[],"mappings":"AAoBA;;;;;;;;;;;;;;;;;;;GAmBG;AACH;IACC;;OAEG;IACH,sBAFW,cAAc,EA0DxB;IAvDA,yBAAwB;IAIxB,8BAYE;IACF,YASE;IAGF,cAAwB;IAExB;;;OAGG;IACH,WAFU,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC,CAEL;IAC1B;;;OAGG;IACH,aAFU,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAED;IAC5B;;;;OAIG;IACH,YAFU,GAAG,CAAC,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE;QAAC,SAAS,EAAE,YAAY,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAC,CAAC,CAAC,CAEzE;IAI3B,0CAA4D;IAC5D;;OAEG;IACH,eAFU,iBAAiB,GAAC,SAAS,CAEP;IAG/B;;;;;OAKG;IACH,cAUC;IAED;;;;;;;OAOG;IACH,mBALW,QAAQ,GACN;QAAC,OAAO,EAAE,UAAU,CAAC;QAAC,IAAI,EAAE,cAAc,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAC,CA6BxE;IAED;;;;;;;;;OASG;IACH,+BANW,MAAM,aACN,MAAM,GACJ,MAAM,GAAC,SAAS,CA4D5B;IAED;;;;OAIG;IACH,YAHW,QAAQ,QACR,MAAM,QA0OhB;CACD;+CAtc6C,0BAA0B;yCADhC,qCAAqC;8BAN/C,2BAA2B"}
|
|
@@ -79,9 +79,10 @@ export default class WebGPURenderer extends Renderer {
|
|
|
79
79
|
* @param {number} height - destination height
|
|
80
80
|
* @param {ShaderEffect} effect - the effect to composite with
|
|
81
81
|
* @param {boolean} [keepBlend=false] - keep the current blend mode
|
|
82
|
+
* @param {number} [alpha=1] - the opacity to composite the blit at (0.0 to 1.0)
|
|
82
83
|
* @override
|
|
83
84
|
*/
|
|
84
|
-
override blitEffect(source: import("../rendertarget/webgpurendertarget.js").default, x: number, y: number, width: number, height: number, effect: ShaderEffect, keepBlend?: boolean): void;
|
|
85
|
+
override blitEffect(source: import("../rendertarget/webgpurendertarget.js").default, x: number, y: number, width: number, height: number, effect: ShaderEffect, keepBlend?: boolean, alpha?: number): void;
|
|
85
86
|
/**
|
|
86
87
|
* Clear the current clip region with the given color — a full-viewport
|
|
87
88
|
* triangle clipped by the active scissor, drawn with blending replaced
|
|
@@ -132,7 +133,6 @@ export default class WebGPURenderer extends Renderer {
|
|
|
132
133
|
*/
|
|
133
134
|
setBatcher(name?: string): WebGPUBatcher;
|
|
134
135
|
drawMesh(mesh: any, modelMatrix: any): void;
|
|
135
|
-
instancedEffectWarned: boolean | undefined;
|
|
136
136
|
/**
|
|
137
137
|
* Release any retained geometry held for the given mesh (called from
|
|
138
138
|
* `Mesh.onDeactivateEvent` / `Mesh.destroy`).
|
|
@@ -321,7 +321,6 @@ export default class WebGPURenderer extends Renderer {
|
|
|
321
321
|
*/
|
|
322
322
|
createPattern(image: HTMLImageElement | SVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas | VideoFrame, repeat?: string): TextureAtlas;
|
|
323
323
|
savedBlendMode: string | undefined;
|
|
324
|
-
maskDepthWarned: boolean | undefined;
|
|
325
324
|
/**
|
|
326
325
|
* Stroke an arc at the specified coordinates with given radius, start and end points
|
|
327
326
|
* @param {number} x - arc center point x-axis
|
|
@@ -466,10 +465,10 @@ export default class WebGPURenderer extends Renderer {
|
|
|
466
465
|
import Renderer from "../renderer.js";
|
|
467
466
|
import { Matrix3d } from "../../math/matrix3d.ts";
|
|
468
467
|
import type ShaderEffect from "../effects/shadereffect.js";
|
|
468
|
+
import Light2d from "../../lighting/light2d.ts";
|
|
469
469
|
import { Color } from "../../math/color.ts";
|
|
470
470
|
import WebGPUBatcher from "./batchers/webgpu_batcher.js";
|
|
471
471
|
import type { Matrix2d } from "../../math/matrix2d.ts";
|
|
472
|
-
import type Light2d from "../../lighting/light2d.ts";
|
|
473
472
|
import RadialGradientEffect from "../effects/radialGradient.js";
|
|
474
473
|
import { TextureAtlas } from "../texture/atlas.js";
|
|
475
474
|
import type { Polygon } from "../../geometries/polygon.ts";
|