@woosh/meep-engine 3.72.0 → 3.73.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/package.json +1 -1
- package/src/engine/graphics/ecs/text/Text.d.ts +21 -2
- package/src/engine/graphics/ecs/text/Text.d.ts.map +1 -1
- package/src/engine/graphics/ecs/text/Text.js +24 -3
- package/src/engine/graphics3/TextSystem.d.ts +9 -8
- package/src/engine/graphics3/TextSystem.d.ts.map +1 -1
- package/src/engine/graphics3/TextSystem.js +65 -134
- package/src/engine/physics/fluid/ecs/FluidObstacleSystem.d.ts +4 -4
- package/src/shade/device/pipeline/PipelineEnquiry.d.ts +11 -5
- package/src/shade/device/pipeline/PipelineEnquiry.d.ts.map +1 -1
- package/src/shade/device/pipeline/PipelineEnquiry.js +7 -0
- package/src/shade/playground/text/main.js +4 -1
- package/src/shade/renderer/Renderer.d.ts.map +1 -1
- package/src/shade/renderer/Renderer.js +10 -1
- package/src/shade/renderer/deferred/tonemap/TonemapDisplaySettings.d.ts +8 -0
- package/src/shade/renderer/deferred/tonemap/TonemapDisplaySettings.d.ts.map +1 -1
- package/src/shade/renderer/deferred/tonemap/TonemapDisplaySettings.js +18 -0
- package/src/shade/renderer/extension/PresentTarget.d.ts +10 -0
- package/src/shade/renderer/extension/PresentTarget.d.ts.map +1 -1
- package/src/shade/renderer/extension/PresentTarget.js +17 -0
- package/src/shade/renderer/fluid/GPUFluidCascade.d.ts +3 -3
- package/src/shade/renderer/fluid/GPUFluidCascadeStack.d.ts +1 -1
- package/src/shade/renderer/fluid/forcing/GPUFluidForcing.d.ts +7 -7
- package/src/shade/renderer/fluid/pressure/GPUFluidPressureSolve.d.ts +1 -1
- package/src/shade/renderer/fluid/query/GPUFluidQueries.d.ts +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/GPUProbeClipmapGI.d.ts +1 -1
- package/src/shade/renderer/loader/gltf/tiny-gltf.d.ts +1 -1
- package/src/shade/renderer/postprocess/nss/NSS.d.ts +1 -1
- package/src/shade/renderer/text/GPUTextAVBOITChannel.d.ts.map +1 -1
- package/src/shade/renderer/text/GPUTextAVBOITChannel.js +67 -37
- package/src/shade/renderer/text/GPUTextSystem.d.ts +7 -0
- package/src/shade/renderer/text/GPUTextSystem.d.ts.map +1 -1
- package/src/shade/renderer/text/GPUTextSystem.js +40 -0
- package/src/shade/renderer/text/data/TEXT_RECORD.d.ts +1 -1
- package/src/shade/renderer/text/data/TEXT_RECORD.d.ts.map +1 -1
- package/src/shade/renderer/text/data/TEXT_RECORD.js +9 -4
- package/src/shade/renderer/text/graph_text.d.ts +14 -94
- package/src/shade/renderer/text/graph_text.d.ts.map +1 -1
- package/src/shade/renderer/text/graph_text.js +83 -106
- package/src/shade/renderer/text/graph_text_avboit.d.ts +1 -1
- package/src/shade/renderer/text/graph_text_avboit.js +1 -1
- package/src/shade/renderer/text/runtime/TextParameters.d.ts +11 -0
- package/src/shade/renderer/text/runtime/TextParameters.d.ts.map +1 -1
- package/src/shade/renderer/text/runtime/TextParameters.js +23 -1
- package/src/shade/renderer/text/shaders/TEXT_VIEW_STRUCT.d.ts +3 -1
- package/src/shade/renderer/text/shaders/TEXT_VIEW_STRUCT.d.ts.map +1 -1
- package/src/shade/renderer/text/shaders/TEXT_VIEW_STRUCT.js +20 -2
- package/src/shade/renderer/text/shaders/chunk_text_canvas_color.d.ts +15 -0
- package/src/shade/renderer/text/shaders/chunk_text_canvas_color.d.ts.map +1 -0
- package/src/shade/renderer/text/shaders/chunk_text_canvas_color.js +29 -0
- package/src/shade/renderer/text/shaders/chunk_text_facing.d.ts +7 -2
- package/src/shade/renderer/text/shaders/chunk_text_facing.d.ts.map +1 -1
- package/src/shade/renderer/text/shaders/chunk_text_facing.js +19 -2
- package/src/shade/renderer/text/shaders/shader_text_count.d.ts +4 -4
- package/src/shade/renderer/text/shaders/shader_text_count.d.ts.map +1 -1
- package/src/shade/renderer/text/shaders/shader_text_count.js +15 -8
- package/src/shade/renderer/text/shaders/shader_text_count_scene.d.ts +2 -2
- package/src/shade/renderer/text/shaders/shader_text_count_scene.d.ts.map +1 -1
- package/src/shade/renderer/text/shaders/shader_text_count_scene.js +4 -5
- package/src/shade/renderer/text/shaders/shader_text_facing_draw.d.ts +2 -2
- package/src/shade/renderer/text/shaders/shader_text_facing_draw.d.ts.map +1 -1
- package/src/shade/renderer/text/shaders/shader_text_facing_draw.js +6 -3
- package/src/shade/renderer/text/shaders/shader_text_facing_draw_shadow.d.ts +19 -0
- package/src/shade/renderer/text/shaders/shader_text_facing_draw_shadow.d.ts.map +1 -0
- package/src/shade/renderer/text/shaders/shader_text_facing_draw_shadow.js +156 -0
- package/src/shade/renderer/text/shaders/shader_text_facing_draw_stroked.d.ts +2 -1
- package/src/shade/renderer/text/shaders/shader_text_facing_draw_stroked.d.ts.map +1 -1
- package/src/shade/renderer/text/shaders/shader_text_facing_draw_stroked.js +7 -3
- package/src/shade/renderer/water/query/GPUWaterQueries.d.ts +1 -1
package/package.json
CHANGED
|
@@ -46,7 +46,7 @@ export class Text {
|
|
|
46
46
|
placement: TextPlacement;
|
|
47
47
|
/**
|
|
48
48
|
* Where in the frame the text is drawn. A text facing the camera has no place in the G-buffer, and a text along
|
|
49
|
-
* its transform is not drawn
|
|
49
|
+
* its transform is not drawn over the finished frame.
|
|
50
50
|
* @type {TextSite}
|
|
51
51
|
*/
|
|
52
52
|
site: TextSite;
|
|
@@ -62,7 +62,9 @@ export class Text {
|
|
|
62
62
|
*/
|
|
63
63
|
vertical: TextVertical;
|
|
64
64
|
/**
|
|
65
|
-
* RGB is the text's colour, linear and unbounded; alpha is the opacity of the whole text, its stroke
|
|
65
|
+
* RGB is the text's colour, linear Rec. 709 and unbounded; alpha is the opacity of the whole text, its stroke
|
|
66
|
+
* with it. Over the finished frame it is the colour the text shows, as a stylesheet's colour of the same value
|
|
67
|
+
* would be; inside the frame it is lit or exposed and tone mapped with the scene.
|
|
66
68
|
* @readonly
|
|
67
69
|
* @type {Color}
|
|
68
70
|
*/
|
|
@@ -82,6 +84,23 @@ export class Text {
|
|
|
82
84
|
* @type {Color}
|
|
83
85
|
*/
|
|
84
86
|
readonly stroke_color: Color;
|
|
87
|
+
/**
|
|
88
|
+
* How far the text's shadow is from the text, right and up on the screen, in {@link size_unit}: (0, -1) with a
|
|
89
|
+
* size in pixels is a shadow one pixel under the text. The shadow is the text's own outlines drawn again in
|
|
90
|
+
* {@link shadow_color}, as sharp as the text and under every text. No shadow at (0, 0).
|
|
91
|
+
*
|
|
92
|
+
* A text facing the camera over the finished frame has one; a text with a stroke, or inside the frame, does not.
|
|
93
|
+
* @readonly
|
|
94
|
+
* @type {Vector2}
|
|
95
|
+
*/
|
|
96
|
+
readonly shadow_offset: Vector2;
|
|
97
|
+
/**
|
|
98
|
+
* RGB is the shadow's colour, linear and unbounded; alpha is how opaque it is under a text of full opacity. A
|
|
99
|
+
* text that fades by its {@link color} takes its shadow with it.
|
|
100
|
+
* @readonly
|
|
101
|
+
* @type {Color}
|
|
102
|
+
*/
|
|
103
|
+
readonly shadow_color: Color;
|
|
85
104
|
}
|
|
86
105
|
export namespace Text {
|
|
87
106
|
let typeName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/graphics/ecs/text/Text.js"],"names":[],"mappings":"AASA;;;;;;;;;GASG;AACH;IACI;;;OAGG;IACH,MAFU,MAAM,CAEN;IAEV;;;;OAIG;IACH,UAFU,OAAO,mCAAmC,EAAE,QAAQ,GAAC,IAAI,CAEnD;IAEhB;;;OAGG;IACH,MAFU,MAAM,CAEP;IAET;;;;OAIG;IACH,WAFU,YAAY,CAES;IAE/B;;;;;;OAMG;IACH,iBAFU,OAAO,CAEU;IAE3B;;;OAGG;IACH,WAFU,aAAa,CAEgB;IAEvC;;;;OAIG;IACH,MAFU,QAAQ,
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/graphics/ecs/text/Text.js"],"names":[],"mappings":"AASA;;;;;;;;;GASG;AACH;IACI;;;OAGG;IACH,MAFU,MAAM,CAEN;IAEV;;;;OAIG;IACH,UAFU,OAAO,mCAAmC,EAAE,QAAQ,GAAC,IAAI,CAEnD;IAEhB;;;OAGG;IACH,MAFU,MAAM,CAEP;IAET;;;;OAIG;IACH,WAFU,YAAY,CAES;IAE/B;;;;;;OAMG;IACH,iBAFU,OAAO,CAEU;IAE3B;;;OAGG;IACH,WAFU,aAAa,CAEgB;IAEvC;;;;OAIG;IACH,MAFU,QAAQ,CAEM;IAExB;;;;OAIG;IACH,OAFU,MAAM,CAEN;IAEV;;;OAGG;IACH,UAFU,YAAY,CAEgB;IAEtC;;;;;;OAMG;IACH,gBAFU,KAAK,CAEe;IAE9B;;;;;;OAMG;IACH,cAFU,MAAM,CAEC;IAEjB;;;;;OAKG;IACH,uBAFU,KAAK,CAEsB;IAErC;;;;;;;;OAQG;IACH,wBAFU,OAAO,CAEiB;IAElC;;;;;OAKG;IACH,uBAFU,KAAK,CAEsB;CACxC;;kBAIS,MAAM;sBAMN,OAAO;;6BAhIV,qDAAqD;oBANxC,kCAAkC;8BAM/C,qDAAqD;yBAArD,qDAAqD;6BAArD,qDAAqD;sBAPtC,iCAAiC"}
|
|
@@ -61,10 +61,10 @@ export class Text {
|
|
|
61
61
|
|
|
62
62
|
/**
|
|
63
63
|
* Where in the frame the text is drawn. A text facing the camera has no place in the G-buffer, and a text along
|
|
64
|
-
* its transform is not drawn
|
|
64
|
+
* its transform is not drawn over the finished frame.
|
|
65
65
|
* @type {TextSite}
|
|
66
66
|
*/
|
|
67
|
-
site = TextSite.
|
|
67
|
+
site = TextSite.Overlay;
|
|
68
68
|
|
|
69
69
|
/**
|
|
70
70
|
* Share of each line's width that is left of the transform's position: 0 starts every line there, 0.5 centres
|
|
@@ -80,7 +80,9 @@ export class Text {
|
|
|
80
80
|
vertical = TextVertical.FirstBaseline;
|
|
81
81
|
|
|
82
82
|
/**
|
|
83
|
-
* RGB is the text's colour, linear and unbounded; alpha is the opacity of the whole text, its stroke
|
|
83
|
+
* RGB is the text's colour, linear Rec. 709 and unbounded; alpha is the opacity of the whole text, its stroke
|
|
84
|
+
* with it. Over the finished frame it is the colour the text shows, as a stylesheet's colour of the same value
|
|
85
|
+
* would be; inside the frame it is lit or exposed and tone mapped with the scene.
|
|
84
86
|
* @readonly
|
|
85
87
|
* @type {Color}
|
|
86
88
|
*/
|
|
@@ -102,6 +104,25 @@ export class Text {
|
|
|
102
104
|
* @type {Color}
|
|
103
105
|
*/
|
|
104
106
|
stroke_color = new Color(0, 0, 0, 1);
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* How far the text's shadow is from the text, right and up on the screen, in {@link size_unit}: (0, -1) with a
|
|
110
|
+
* size in pixels is a shadow one pixel under the text. The shadow is the text's own outlines drawn again in
|
|
111
|
+
* {@link shadow_color}, as sharp as the text and under every text. No shadow at (0, 0).
|
|
112
|
+
*
|
|
113
|
+
* A text facing the camera over the finished frame has one; a text with a stroke, or inside the frame, does not.
|
|
114
|
+
* @readonly
|
|
115
|
+
* @type {Vector2}
|
|
116
|
+
*/
|
|
117
|
+
shadow_offset = new Vector2(0, 0);
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* RGB is the shadow's colour, linear and unbounded; alpha is how opaque it is under a text of full opacity. A
|
|
121
|
+
* text that fades by its {@link color} takes its shadow with it.
|
|
122
|
+
* @readonly
|
|
123
|
+
* @type {Color}
|
|
124
|
+
*/
|
|
125
|
+
shadow_color = new Color(0, 0, 0, 1);
|
|
105
126
|
}
|
|
106
127
|
|
|
107
128
|
/**
|
|
@@ -34,11 +34,12 @@ export function apply_text(parameters: TextParameters, text: Text): void;
|
|
|
34
34
|
* and blended order-independently with the transparent meshes, the particles, the trails and each other. They are
|
|
35
35
|
* unlit. With transparency off they are not drawn.
|
|
36
36
|
*
|
|
37
|
-
* A text inside the frame is drawn without its stroke.
|
|
37
|
+
* A text inside the frame is drawn without its stroke and without its shadow.
|
|
38
38
|
*
|
|
39
|
-
* **What is drawn
|
|
40
|
-
*
|
|
41
|
-
*
|
|
39
|
+
* **What is drawn over the finished frame:** texts that face the camera, onto the canvas at the output resolution,
|
|
40
|
+
* after the tone mapper and with no depth test. A text's colour there is the colour it shows: the exposure, the
|
|
41
|
+
* grade and the tone mapper's curve do not touch it, and it fades as a page's text does. A text with a stroke is
|
|
42
|
+
* drawn over every text without one, and has no shadow. The shadows of the rest are drawn first, so every shadow is under every text. Among the stroked, and among the rest, which of two that overlap is on top is not theirs to choose, and it
|
|
42
43
|
* does not change from frame to frame. A frame in which every such text is wholly
|
|
43
44
|
* transparent records nothing.
|
|
44
45
|
*/
|
|
@@ -70,21 +71,21 @@ export class TextSystem extends System<any> {
|
|
|
70
71
|
*/
|
|
71
72
|
unlink(text: Text, transform: Transform64, entity: number): void;
|
|
72
73
|
/**
|
|
73
|
-
* Record the stamp of the frame's texts that lie on surfaces into the G-buffer's base colour
|
|
74
|
-
*
|
|
74
|
+
* Record the stamp of the frame's texts that lie on surfaces into the G-buffer's base colour, once the G-buffer
|
|
75
|
+
* is drawn.
|
|
75
76
|
*
|
|
76
77
|
* @param {import("../../shade/renderer/extension/FrameContext.js").FrameContext} frame
|
|
77
78
|
*/
|
|
78
79
|
record_stamp(frame: import("../../shade/renderer/extension/FrameContext.js").FrameContext): void;
|
|
79
80
|
/**
|
|
80
81
|
* Hand the frame's texts among the transparent things to the transparency pipeline, which records their passes
|
|
81
|
-
* when it records its own
|
|
82
|
+
* when it records its own. Called once the opaque scene is lit.
|
|
82
83
|
*
|
|
83
84
|
* @param {import("../../shade/renderer/extension/FrameContext.js").FrameContext} frame
|
|
84
85
|
*/
|
|
85
86
|
record_transparency(frame: import("../../shade/renderer/extension/FrameContext.js").FrameContext): void;
|
|
86
87
|
/**
|
|
87
|
-
* Record the frame's text
|
|
88
|
+
* Record the frame's text onto the canvas, after the tone mapper.
|
|
88
89
|
*
|
|
89
90
|
* @param {import("../../shade/renderer/extension/FrameContext.js").FrameContext} frame
|
|
90
91
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextSystem.d.ts","sourceRoot":"","sources":["../../../../src/engine/graphics3/TextSystem.js"],"names":[],"mappings":"AA2BA;;;;;;;GAOG;AAEH;;;;;GAKG;AACH,uCAHW,cAAc,QACd,IAAI,
|
|
1
|
+
{"version":3,"file":"TextSystem.d.ts","sourceRoot":"","sources":["../../../../src/engine/graphics3/TextSystem.js"],"names":[],"mappings":"AA2BA;;;;;;;GAOG;AAEH;;;;;GAKG;AACH,uCAHW,cAAc,QACd,IAAI,QAqCd;AAqCD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH;IAmFI;;;OAGG;IACH,sBAHW,OAAO,qBAAqB,EAAE,cAAc,SAC5C,OAAO,qCAAqC,EAAE,KAAK,EAW7D;IA/FD,mDAAmC;IAiGnC;;;;OAIG;IACH,6BAEC;IAED,2CAcC;IAED,4CAYC;IA4BD;;;;OAIG;IACH,WAJW,IAAI,aACJ,WAAW,UACX,MAAM,QAmBhB;IAED;;;;OAIG;IACH,aAJW,IAAI,aACJ,WAAW,UACX,MAAM,QAIhB;IA2DD;;;;;OAKG;IACH,oBAFW,OAAO,gDAAgD,EAAE,YAAY,QAuB/E;IAED;;;;;OAKG;IACH,2BAFW,OAAO,gDAAgD,EAAE,YAAY,QAwB/E;IAED;;;;OAIG;IACH,cAFW,OAAO,gDAAgD,EAAE,YAAY,QA+B/E;;CAwHJ;;YArkBa,MAAM;UACN,IAAI;;;;UACJ,aAAa;;;;;aACb,OAAO,4CAA4C,EAAE,cAAc,GAAC,IAAI;;+BAZvD,qDAAqD;qBAI/D,8BAA8B;uBAF5B,kBAAkB;4BACb,iCAAiC;8BAb/B,4CAA4C;8BAe5C,oBAAoB"}
|
|
@@ -3,7 +3,7 @@ import { m4_multiply } from "../../core/geom/3d/mat4/m4_multiply.js";
|
|
|
3
3
|
import { FramePhase } from "../../shade/renderer/extension/FramePhase.js";
|
|
4
4
|
import { GBufferTextures } from "../../shade/renderer/extension/GBufferTextures.js";
|
|
5
5
|
import { RenderExtension } from "../../shade/renderer/extension/RenderExtension.js";
|
|
6
|
-
import {
|
|
6
|
+
import { PresentTarget } from "../../shade/renderer/extension/PresentTarget.js";
|
|
7
7
|
import { ViewTextures } from "../../shade/renderer/extension/ViewTextures.js";
|
|
8
8
|
import { row_of_entity } from "../../shade/renderer/scene/rows/GPUSceneRows.js";
|
|
9
9
|
import { graph_import_buffer } from "../../shade/renderer/shader/graph/graph_import_buffer.js";
|
|
@@ -11,9 +11,9 @@ import { GPUTextAVBOITChannel } from "../../shade/renderer/text/GPUTextAVBOITCha
|
|
|
11
11
|
import { GPUTextSystem } from "../../shade/renderer/text/GPUTextSystem.js";
|
|
12
12
|
import { text_draw_class, TextPlacement, TextSite } from "../../shade/renderer/text/data/TEXT_RECORD.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
14
|
+
enquire_text_overlay_pipelines,
|
|
15
15
|
enquire_text_stamp_pipelines,
|
|
16
|
-
|
|
16
|
+
graph_text_overlay,
|
|
17
17
|
graph_text_stamp,
|
|
18
18
|
text_site_glyph_count
|
|
19
19
|
} from "../../shade/renderer/text/graph_text.js";
|
|
@@ -66,109 +66,51 @@ export function apply_text(parameters, text) {
|
|
|
66
66
|
parameters.stroke_color[1] = stroke_color.y;
|
|
67
67
|
parameters.stroke_color[2] = stroke_color.z;
|
|
68
68
|
parameters.stroke_color[3] = stroke_color.w;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Draws the texts over the scene once it is at the output resolution, before it is tone mapped.
|
|
73
|
-
*/
|
|
74
|
-
class TextAfterUpscaleExtension extends RenderExtension {
|
|
75
|
-
name = 'text';
|
|
76
|
-
|
|
77
|
-
phase = FramePhase.BeforePresent;
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* @type {TextSystem}
|
|
81
|
-
*/
|
|
82
|
-
#system;
|
|
83
69
|
|
|
84
|
-
|
|
85
|
-
* @param {TextSystem} system
|
|
86
|
-
*/
|
|
87
|
-
constructor(system) {
|
|
88
|
-
super();
|
|
89
|
-
|
|
90
|
-
this.#system = system;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
record(frame) {
|
|
94
|
-
this.#system.record(frame);
|
|
95
|
-
}
|
|
70
|
+
const shadow_color = text.shadow_color;
|
|
96
71
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
72
|
+
parameters.shadow_offset[0] = text.shadow_offset.x;
|
|
73
|
+
parameters.shadow_offset[1] = text.shadow_offset.y;
|
|
74
|
+
parameters.shadow_color[0] = shadow_color.x;
|
|
75
|
+
parameters.shadow_color[1] = shadow_color.y;
|
|
76
|
+
parameters.shadow_color[2] = shadow_color.z;
|
|
77
|
+
parameters.shadow_color[3] = shadow_color.w;
|
|
100
78
|
}
|
|
101
79
|
|
|
102
80
|
/**
|
|
103
|
-
*
|
|
81
|
+
* One of the frame's phases the system records at: what it records there, and the pipelines it draws with.
|
|
104
82
|
*/
|
|
105
|
-
class
|
|
106
|
-
name = 'text stamp';
|
|
107
|
-
|
|
108
|
-
phase = FramePhase.AfterGBuffer;
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* @type {TextSystem}
|
|
112
|
-
*/
|
|
113
|
-
#system;
|
|
114
|
-
|
|
83
|
+
class TextFrameExtension extends RenderExtension {
|
|
115
84
|
/**
|
|
116
|
-
* @param {
|
|
85
|
+
* @param {string} name
|
|
86
|
+
* @param {FramePhase} phase
|
|
87
|
+
* @param {function(import("../../shade/renderer/extension/FrameContext.js").FrameContext): void} record
|
|
88
|
+
* @param {function(import("../../shade/device/pipeline/PipelineEnquiry.js").PipelineEnquiry): void} enquire
|
|
117
89
|
*/
|
|
118
|
-
constructor(
|
|
90
|
+
constructor(name, phase, record, enquire) {
|
|
119
91
|
super();
|
|
120
92
|
|
|
121
|
-
this
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
this.#system.record_stamp(frame);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
enquirePipelines(enquiry) {
|
|
129
|
-
enquire_text_stamp_pipelines(enquiry);
|
|
93
|
+
this.name = name;
|
|
94
|
+
this.phase = phase;
|
|
95
|
+
this.record = record;
|
|
96
|
+
this.enquirePipelines = enquire;
|
|
130
97
|
}
|
|
131
98
|
}
|
|
132
99
|
|
|
100
|
+
const scratch_view_projection = new Float32Array(16);
|
|
101
|
+
|
|
133
102
|
/**
|
|
134
|
-
*
|
|
103
|
+
* What a target that holds the scene's own colour takes a text's colour through: nothing.
|
|
104
|
+
* @type {Float32Array}
|
|
135
105
|
*/
|
|
136
|
-
|
|
137
|
-
name = 'text transparency';
|
|
138
|
-
|
|
139
|
-
phase = FramePhase.AfterLighting;
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* @type {TextSystem}
|
|
143
|
-
*/
|
|
144
|
-
#system;
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* @param {TextSystem} system
|
|
148
|
-
*/
|
|
149
|
-
constructor(system) {
|
|
150
|
-
super();
|
|
151
|
-
|
|
152
|
-
this.#system = system;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
record(frame) {
|
|
156
|
-
this.#system.record_transparency(frame);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
enquirePipelines(enquiry) {
|
|
160
|
-
enquire_text_avboit_pipelines(enquiry);
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
const scratch_view_projection = new Float32Array(16);
|
|
106
|
+
const SCENE_FROM_REC709 = new Float32Array([1, 0, 0, 0, 1, 0, 0, 0, 1]);
|
|
165
107
|
|
|
166
108
|
/**
|
|
167
109
|
* The draw classes of what this system draws.
|
|
168
110
|
* @type {number}
|
|
169
111
|
*/
|
|
170
|
-
const DRAWN_CLASS = text_draw_class(TextPlacement.FacingCamera, TextSite.
|
|
171
|
-
const DRAWN_CLASS_STROKED = text_draw_class(TextPlacement.FacingCamera, TextSite.
|
|
112
|
+
const DRAWN_CLASS = text_draw_class(TextPlacement.FacingCamera, TextSite.Overlay, false);
|
|
113
|
+
const DRAWN_CLASS_STROKED = text_draw_class(TextPlacement.FacingCamera, TextSite.Overlay, true);
|
|
172
114
|
|
|
173
115
|
/**
|
|
174
116
|
* Draws every {@link Text}: laid out on the CPU when what it says changes, placed and drawn on the GPU from its
|
|
@@ -191,11 +133,12 @@ const DRAWN_CLASS_STROKED = text_draw_class(TextPlacement.FacingCamera, TextSite
|
|
|
191
133
|
* and blended order-independently with the transparent meshes, the particles, the trails and each other. They are
|
|
192
134
|
* unlit. With transparency off they are not drawn.
|
|
193
135
|
*
|
|
194
|
-
* A text inside the frame is drawn without its stroke.
|
|
136
|
+
* A text inside the frame is drawn without its stroke and without its shadow.
|
|
195
137
|
*
|
|
196
|
-
* **What is drawn
|
|
197
|
-
*
|
|
198
|
-
*
|
|
138
|
+
* **What is drawn over the finished frame:** texts that face the camera, onto the canvas at the output resolution,
|
|
139
|
+
* after the tone mapper and with no depth test. A text's colour there is the colour it shows: the exposure, the
|
|
140
|
+
* grade and the tone mapper's curve do not touch it, and it fades as a page's text does. A text with a stroke is
|
|
141
|
+
* drawn over every text without one, and has no shadow. The shadows of the rest are drawn first, so every shadow is under every text. Among the stroked, and among the rest, which of two that overlap is on top is not theirs to choose, and it
|
|
199
142
|
* does not change from frame to frame. A frame in which every such text is wholly
|
|
200
143
|
* transparent records nothing.
|
|
201
144
|
*/
|
|
@@ -234,19 +177,11 @@ export class TextSystem extends System {
|
|
|
234
177
|
#runtime_context = null;
|
|
235
178
|
|
|
236
179
|
/**
|
|
237
|
-
*
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* @type {TextStampExtension|null}
|
|
180
|
+
* The phases the system records at, while it is started: the G-buffer's stamp, the hand-over to the
|
|
181
|
+
* transparency pipeline, and the text over the finished frame.
|
|
182
|
+
* @type {TextFrameExtension[]}
|
|
243
183
|
*/
|
|
244
|
-
#
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* @type {TextTransparencyExtension|null}
|
|
248
|
-
*/
|
|
249
|
-
#transparency_extension = null;
|
|
184
|
+
#extensions = [];
|
|
250
185
|
|
|
251
186
|
/**
|
|
252
187
|
* The texts among the transparent things, as the transparency pipeline asks for them.
|
|
@@ -267,7 +202,7 @@ export class TextSystem extends System {
|
|
|
267
202
|
#scratch = new TextParameters();
|
|
268
203
|
|
|
269
204
|
/**
|
|
270
|
-
* The view as the passes
|
|
205
|
+
* The view as the passes over the finished frame read it: the canvas, as it is displayed.
|
|
271
206
|
* @type {Float32Array}
|
|
272
207
|
*/
|
|
273
208
|
#view = new Float32Array(TEXT_VIEW_FLOATS);
|
|
@@ -317,31 +252,25 @@ export class TextSystem extends System {
|
|
|
317
252
|
async startup(entityManager) {
|
|
318
253
|
this.entityManager = entityManager;
|
|
319
254
|
|
|
320
|
-
this.#
|
|
321
|
-
|
|
322
|
-
|
|
255
|
+
this.#extensions.push(
|
|
256
|
+
new TextFrameExtension('text stamp', FramePhase.AfterGBuffer, frame => this.record_stamp(frame), enquire_text_stamp_pipelines),
|
|
257
|
+
new TextFrameExtension('text transparency', FramePhase.AfterLighting, frame => this.record_transparency(frame), enquire_text_avboit_pipelines),
|
|
258
|
+
new TextFrameExtension('text', FramePhase.Overlay, frame => this.record(frame), enquire_text_overlay_pipelines)
|
|
259
|
+
);
|
|
260
|
+
|
|
261
|
+
for (const extension of this.#extensions) {
|
|
262
|
+
this.#graphics.add_extension(extension);
|
|
263
|
+
}
|
|
323
264
|
|
|
324
|
-
this.#graphics.add_extension(this.#stamp_extension);
|
|
325
|
-
this.#graphics.add_extension(this.#transparency_extension);
|
|
326
|
-
this.#graphics.add_extension(this.#extension);
|
|
327
265
|
this.#graphics.add_transparency_channel(this.#channel);
|
|
328
266
|
}
|
|
329
267
|
|
|
330
268
|
async shutdown(entityManager) {
|
|
331
|
-
|
|
332
|
-
this.#graphics.remove_extension(
|
|
333
|
-
this.#extension = null;
|
|
269
|
+
for (const extension of this.#extensions) {
|
|
270
|
+
this.#graphics.remove_extension(extension);
|
|
334
271
|
}
|
|
335
272
|
|
|
336
|
-
|
|
337
|
-
this.#graphics.remove_extension(this.#stamp_extension);
|
|
338
|
-
this.#stamp_extension = null;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
if (this.#transparency_extension !== null) {
|
|
342
|
-
this.#graphics.remove_extension(this.#transparency_extension);
|
|
343
|
-
this.#transparency_extension = null;
|
|
344
|
-
}
|
|
273
|
+
this.#extensions.length = 0;
|
|
345
274
|
|
|
346
275
|
this.#graphics.remove_transparency_channel(this.#channel);
|
|
347
276
|
this.#channel.end_frame();
|
|
@@ -443,8 +372,9 @@ export class TextSystem extends System {
|
|
|
443
372
|
*
|
|
444
373
|
* @param {Float32Array} view
|
|
445
374
|
* @param {import("../../shade/renderer/extension/FrameContext.js").FrameContext} frame
|
|
375
|
+
* @param {Float32Array} target_from_rec709 the matrix from linear Rec. 709 to the target's linear primaries
|
|
446
376
|
*/
|
|
447
|
-
#write_view(view, frame) {
|
|
377
|
+
#write_view(view, frame, target_from_rec709) {
|
|
448
378
|
const camera = frame.view.camera.camera;
|
|
449
379
|
|
|
450
380
|
m4_multiply(scratch_view_projection, camera.projection_matrix, camera.view_matrix);
|
|
@@ -460,13 +390,14 @@ export class TextSystem extends System {
|
|
|
460
390
|
resolution[0], resolution[1],
|
|
461
391
|
camera.projection_matrix[5],
|
|
462
392
|
// a viewport with no size yet displays nothing; a pixel is a pixel until it has one
|
|
463
|
-
displayed_height > 0 ? resolution[1] / displayed_height : 1
|
|
393
|
+
displayed_height > 0 ? resolution[1] / displayed_height : 1,
|
|
394
|
+
target_from_rec709
|
|
464
395
|
);
|
|
465
396
|
}
|
|
466
397
|
|
|
467
398
|
/**
|
|
468
|
-
* Record the stamp of the frame's texts that lie on surfaces into the G-buffer's base colour
|
|
469
|
-
*
|
|
399
|
+
* Record the stamp of the frame's texts that lie on surfaces into the G-buffer's base colour, once the G-buffer
|
|
400
|
+
* is drawn.
|
|
470
401
|
*
|
|
471
402
|
* @param {import("../../shade/renderer/extension/FrameContext.js").FrameContext} frame
|
|
472
403
|
*/
|
|
@@ -477,7 +408,7 @@ export class TextSystem extends System {
|
|
|
477
408
|
return;
|
|
478
409
|
}
|
|
479
410
|
|
|
480
|
-
this.#write_view(this.#view_scene, frame);
|
|
411
|
+
this.#write_view(this.#view_scene, frame, SCENE_FROM_REC709);
|
|
481
412
|
|
|
482
413
|
const graph = frame.graph;
|
|
483
414
|
const gbuffer = frame.get(GBufferTextures);
|
|
@@ -495,7 +426,7 @@ export class TextSystem extends System {
|
|
|
495
426
|
|
|
496
427
|
/**
|
|
497
428
|
* Hand the frame's texts among the transparent things to the transparency pipeline, which records their passes
|
|
498
|
-
* when it records its own
|
|
429
|
+
* when it records its own. Called once the opaque scene is lit.
|
|
499
430
|
*
|
|
500
431
|
* @param {import("../../shade/renderer/extension/FrameContext.js").FrameContext} frame
|
|
501
432
|
*/
|
|
@@ -509,7 +440,7 @@ export class TextSystem extends System {
|
|
|
509
440
|
return;
|
|
510
441
|
}
|
|
511
442
|
|
|
512
|
-
this.#write_view(this.#view_scene, frame);
|
|
443
|
+
this.#write_view(this.#view_scene, frame, SCENE_FROM_REC709);
|
|
513
444
|
|
|
514
445
|
const graph = frame.graph;
|
|
515
446
|
|
|
@@ -524,7 +455,7 @@ export class TextSystem extends System {
|
|
|
524
455
|
}
|
|
525
456
|
|
|
526
457
|
/**
|
|
527
|
-
* Record the frame's text
|
|
458
|
+
* Record the frame's text onto the canvas, after the tone mapper.
|
|
528
459
|
*
|
|
529
460
|
* @param {import("../../shade/renderer/extension/FrameContext.js").FrameContext} frame
|
|
530
461
|
*/
|
|
@@ -541,21 +472,21 @@ export class TextSystem extends System {
|
|
|
541
472
|
return;
|
|
542
473
|
}
|
|
543
474
|
|
|
544
|
-
|
|
545
|
-
this.#write_view(this.#view, frame);
|
|
475
|
+
const present = frame.get(PresentTarget);
|
|
546
476
|
|
|
547
|
-
|
|
477
|
+
// without the frame's jitter: text drawn past the temporal resolve must not move with it
|
|
478
|
+
this.#write_view(this.#view, frame, present.display_from_rec709);
|
|
548
479
|
|
|
549
480
|
// Read the way the velocity pass and the trails read it: the hierarchy is encoded ahead of the frame's
|
|
550
481
|
// graph, so the matrices in it are this frame's.
|
|
551
482
|
const scene_database = graph_import_buffer(frame.graph, frame.view.scene.scene_database_buffer, "scene_database/text");
|
|
552
483
|
|
|
553
|
-
|
|
484
|
+
present.canvas = graph_text_overlay({
|
|
554
485
|
graph: frame.graph,
|
|
555
486
|
runtime,
|
|
556
487
|
scene_database,
|
|
557
488
|
view: this.#view,
|
|
558
|
-
color:
|
|
489
|
+
color: present.canvas,
|
|
559
490
|
});
|
|
560
491
|
}
|
|
561
492
|
|
|
@@ -67,11 +67,11 @@ export class FluidObstacleSystem extends System<any> {
|
|
|
67
67
|
/**
|
|
68
68
|
* @param {FluidComponent} fluid
|
|
69
69
|
*/
|
|
70
|
-
static "__#
|
|
70
|
+
static "__#503@#refresh_masks"(fluid: FluidComponent): void;
|
|
71
71
|
/**
|
|
72
72
|
* @param {FluidComponent} fluid
|
|
73
73
|
*/
|
|
74
|
-
static "__#
|
|
74
|
+
static "__#503@#clear_field"(fluid: FluidComponent): void;
|
|
75
75
|
/**
|
|
76
76
|
* Mark every cell of `fluid` whose centre lies within `inflation` of the
|
|
77
77
|
* posed shape as solid. Iteration is clipped to the shape's world AABB
|
|
@@ -83,7 +83,7 @@ export class FluidObstacleSystem extends System<any> {
|
|
|
83
83
|
* @param {number} inflation world-units SDF threshold
|
|
84
84
|
* @param {Float64Array} point length-3 scratch
|
|
85
85
|
*/
|
|
86
|
-
static "__#
|
|
86
|
+
static "__#503@#voxelize"(fluid: FluidComponent, posed: PosedShape3D, aabb: Float64Array, inflation: number, point: Float64Array): void;
|
|
87
87
|
/**
|
|
88
88
|
* Write the obstacle's translation velocity onto every face of every cell
|
|
89
89
|
* it voxelized — the moving-wall boundary condition. Runs AFTER the mask
|
|
@@ -103,7 +103,7 @@ export class FluidObstacleSystem extends System<any> {
|
|
|
103
103
|
* @param {number} wvy
|
|
104
104
|
* @param {number} wvz
|
|
105
105
|
*/
|
|
106
|
-
static "__#
|
|
106
|
+
static "__#503@#stamp_wall_velocity"(fluid: FluidComponent, posed: PosedShape3D, aabb: Float64Array, inflation: number, point: Float64Array, wvx: number, wvy: number, wvz: number): void;
|
|
107
107
|
constructor();
|
|
108
108
|
dependencies: (typeof FluidObstacle)[];
|
|
109
109
|
components_used: (ResourceAccessSpecification<typeof Transform64> | ResourceAccessSpecification<typeof FluidObstacle> | ResourceAccessSpecification<typeof Collider> | ResourceAccessSpecification<typeof RigidBody> | ResourceAccessSpecification<typeof FluidComponent>)[];
|
|
@@ -26,11 +26,7 @@
|
|
|
26
26
|
* `enquirePipelines`, for all of them.
|
|
27
27
|
*/
|
|
28
28
|
export class PipelineEnquiry {
|
|
29
|
-
|
|
30
|
-
* @param {GPUDevice} device
|
|
31
|
-
* @returns {PipelineEnquiry}
|
|
32
|
-
*/
|
|
33
|
-
static from(device: GPUDevice): PipelineEnquiry;
|
|
29
|
+
static from(device: any): PipelineEnquiry;
|
|
34
30
|
/**
|
|
35
31
|
* The device the pipelines are for. Some descriptors are built from its limits, which is how an
|
|
36
32
|
* offer comes out equal to the descriptor the pass builds for itself.
|
|
@@ -46,6 +42,16 @@ export class PipelineEnquiry {
|
|
|
46
42
|
* @type {ComputePipelineDescriptor[]}
|
|
47
43
|
*/
|
|
48
44
|
compute: ComputePipelineDescriptor[];
|
|
45
|
+
/**
|
|
46
|
+
* @param {GPUDevice} device
|
|
47
|
+
* @returns {PipelineEnquiry}
|
|
48
|
+
*/
|
|
49
|
+
/**
|
|
50
|
+
* The format of the canvas the frames are presented on, for whoever draws onto it past the tone mapper. Null
|
|
51
|
+
* when the one who asks has no canvas.
|
|
52
|
+
* @type {GPUTextureFormat|null}
|
|
53
|
+
*/
|
|
54
|
+
presentation_format: GPUTextureFormat | null;
|
|
49
55
|
}
|
|
50
56
|
export type RenderPipelineDescriptor = import("../../descriptor/pipeline/render/RenderPipelineDescriptor.js").RenderPipelineDescriptor;
|
|
51
57
|
export type ComputePipelineDescriptor = import("../../descriptor/pipeline/compute/ComputePipelineDescriptor.js").ComputePipelineDescriptor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PipelineEnquiry.d.ts","sourceRoot":"","sources":["../../../../../src/shade/device/pipeline/PipelineEnquiry.js"],"names":[],"mappings":"AAEA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH;
|
|
1
|
+
{"version":3,"file":"PipelineEnquiry.d.ts","sourceRoot":"","sources":["../../../../../src/shade/device/pipeline/PipelineEnquiry.js"],"names":[],"mappings":"AAEA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH;IA8BI,0CAQC;IArCD;;;;;OAKG;IACH,kBAAO;IAEP;;OAEG;IACH,QAFU,wBAAwB,EAAE,CAExB;IAEZ;;OAEG;IACH,SAFU,yBAAyB,EAAE,CAExB;IAEb;;;OAGG;IACH;;;;OAIG;IACH,qBAFU,mBAAiB,IAAI,CAEJ;CAW9B;uCAlEY,OAAO,8DAA8D,EAAE,wBAAwB;wCAC/F,OAAO,gEAAgE,EAAE,yBAAyB"}
|
|
@@ -51,6 +51,13 @@ export class PipelineEnquiry {
|
|
|
51
51
|
* @param {GPUDevice} device
|
|
52
52
|
* @returns {PipelineEnquiry}
|
|
53
53
|
*/
|
|
54
|
+
/**
|
|
55
|
+
* The format of the canvas the frames are presented on, for whoever draws onto it past the tone mapper. Null
|
|
56
|
+
* when the one who asks has no canvas.
|
|
57
|
+
* @type {GPUTextureFormat|null}
|
|
58
|
+
*/
|
|
59
|
+
presentation_format = null;
|
|
60
|
+
|
|
54
61
|
static from(device) {
|
|
55
62
|
assert.defined(device, 'device');
|
|
56
63
|
|
|
@@ -37,7 +37,7 @@ import { TextPlacement, TextSite, TextSizeUnit, TextVertical } from "../../rende
|
|
|
37
37
|
* Texts drawn by `TextSystem`: numbers that pop up over a field, rise and fade as a game's damage numbers do, and
|
|
38
38
|
* a few labels that stay where they are, one of them sized in world units. A number stands on the point it popped
|
|
39
39
|
* up at and rises by its text's offset, in pixels, so its entity does not move. Some are critical hits:
|
|
40
|
-
* larger, with a "!" and a dark stroke under it.
|
|
40
|
+
* larger, with a "!" and a dark stroke under it. The rest have a dark shadow a pixel under them.
|
|
41
41
|
*
|
|
42
42
|
* The field is a lit floor with a wall and a pane of glass on it. Two texts are stamped onto the floor and the wall
|
|
43
43
|
* and lit with them; three more stand among the transparent things, behind the glass, in front of it, and half
|
|
@@ -303,6 +303,9 @@ async function main() {
|
|
|
303
303
|
text.align = 0.5;
|
|
304
304
|
text.vertical = TextVertical.Bottom;
|
|
305
305
|
text.stroke_color.set(0.004, 0.004, 0.004, 0.85);
|
|
306
|
+
// a dark copy a pixel under each number that has no stroke, so it reads over bright ground
|
|
307
|
+
text.shadow_offset.set(0, -1);
|
|
308
|
+
text.shadow_color.set(0, 0, 0, 0.85);
|
|
306
309
|
|
|
307
310
|
const transform = new Transform64();
|
|
308
311
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Renderer.d.ts","sourceRoot":"","sources":["../../../../src/shade/renderer/Renderer.js"],"names":[],"mappings":"AA+LA;IAOI,0BAEC;IAED;;OAEG;IACH,0BAAQ;IAER;;;;;;OAMG;IACH,kDAEC;IAED;;OAEG;IACH,kBAAO;IAYP;;;OAGG;IACH,2BAEC;IAaD,wCAGC;IAED,uCAEC;IAED;;;;OAIG;IACH,wBAFU,yBAAyB,CAEoB;IAEvD;;;;;;;OAOG;IACH,mBAFU,gBAAgB,CAEgB;IAE1C;;;;OAIG;IACH,eAFU,oBAAoB,CAEa;IAY3C;;;;OAIG;IACH,eAFU,mBAAmB,CAEa;IAW1C;;;;;;;OAOG;I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G;IACH,qBAA+B;IAgB/B;;;OAGG;IACH,yCAeC;IAED;;;OAGG;IACH,wCAEC;IA0BD;;;OAGG;IACH,iCAEC;IAED;;;;OAIG;IACH,2BAEC;IAQD;;;OAGG;IACH,+CAIC;IAED;;;OAGG;IACH,gDAIC;IAeD;;;OAGG;IACH,6CAIC;IAED;;;;OAIG;IACH,8CAIC;IAkCD;;;OAGG;IACH,+BAcC;IA1BD;;;OAGG;IACH,0BAEC;IAsBD;;;;;;;;;;;;;;;;;;;OAmBG;IACH,iBAFU,iBAAiB,GAAC,IAAI,CAET;IAkBvB;;OAEG;IACH,0CAQC;IAlBD;;OAEG;IACH,yCAEC;IA6ID;;;;;;;;;;;;;;OAcG;IACH,yBAHW,eAAe,GACb,eAAe,
|
|
1
|
+
{"version":3,"file":"Renderer.d.ts","sourceRoot":"","sources":["../../../../src/shade/renderer/Renderer.js"],"names":[],"mappings":"AA+LA;IAOI,0BAEC;IAED;;OAEG;IACH,0BAAQ;IAER;;;;;;OAMG;IACH,kDAEC;IAED;;OAEG;IACH,kBAAO;IAYP;;;OAGG;IACH,2BAEC;IAaD,wCAGC;IAED,uCAEC;IAED;;;;OAIG;IACH,wBAFU,yBAAyB,CAEoB;IAEvD;;;;;;;OAOG;IACH,mBAFU,gBAAgB,CAEgB;IAE1C;;;;OAIG;IACH,eAFU,oBAAoB,CAEa;IAY3C;;;;OAIG;IACH,eAFU,mBAAmB,CAEa;IAW1C;;;;;;;OAOG;IACH,mBAFU,qBAAqB,CAEkB;IAEjD;;;;OAIG;IACH,aAFU,UAAU,CAER;IAEZ;;;OAGG;IACH,QAFU,cAAc,CAEM;IAE9B;;;;;;;;;OASG;IACH,2BAFU,OAAO,CAEiB;IAElC,6BAA4B;IAC5B,8BAA4B;IAC5B;;;;OAIG;IACH,mCAAkC;IAClC;;;;;;;OAOG;IACH,mCAFU,OAAO,CAEyB;IAW1C,oCAIC;IAED,mCAEC;IAYD,oCAIC;IAED,mCAEC;IAED;;;;;;OAMG;I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