@next2d/renderer 3.1.0 → 3.2.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next2d/renderer",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "Next2D Renderer Package",
|
|
5
5
|
"author": "Toshiyuki Ienaga<ienaga@next2d.app> (https://github.com/ienaga/)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"url": "git+https://github.com/Next2D/Player.git"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@next2d/webgl": "3.
|
|
28
|
-
"@next2d/webgpu": "3.
|
|
29
|
-
"@next2d/cache": "3.
|
|
30
|
-
"@next2d/texture-packer": "3.
|
|
27
|
+
"@next2d/webgl": "3.2.0",
|
|
28
|
+
"@next2d/webgpu": "3.2.0",
|
|
29
|
+
"@next2d/cache": "3.2.0",
|
|
30
|
+
"@next2d/texture-packer": "3.2.0"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -36,6 +36,9 @@ export const execute = (render_queue, index, image_bitmaps) => {
|
|
|
36
36
|
let filterParams = null;
|
|
37
37
|
let matrix = null;
|
|
38
38
|
let colorTransform = null;
|
|
39
|
+
// filter layer内部スケール (子孫のcacheAsBitmap最大値)。compose時に 1/layerScaleで縮小合成する。
|
|
40
|
+
let layerScaleX = 1;
|
|
41
|
+
let layerScaleY = 1;
|
|
39
42
|
if (useLayer) {
|
|
40
43
|
layerWidth = render_queue[index++];
|
|
41
44
|
layerHeight = render_queue[index++];
|
|
@@ -82,6 +85,8 @@ export const execute = (render_queue, index, image_bitmaps) => {
|
|
|
82
85
|
index += 4;
|
|
83
86
|
matrix = render_queue.subarray(index, index + 6);
|
|
84
87
|
index += 6;
|
|
88
|
+
// layerScale (HIT時は合成時のscale補正には未使用)
|
|
89
|
+
index += 2;
|
|
85
90
|
colorTransform = render_queue.subarray(index, index + 8);
|
|
86
91
|
index += 8;
|
|
87
92
|
// キャッシュされたフィルターテクスチャを描画
|
|
@@ -92,6 +97,8 @@ export const execute = (render_queue, index, image_bitmaps) => {
|
|
|
92
97
|
index += 4;
|
|
93
98
|
matrix = render_queue.subarray(index, index + 6);
|
|
94
99
|
index += 6;
|
|
100
|
+
layerScaleX = render_queue[index++];
|
|
101
|
+
layerScaleY = render_queue[index++];
|
|
95
102
|
colorTransform = render_queue.subarray(index, index + 8);
|
|
96
103
|
index += 8;
|
|
97
104
|
const length = render_queue[index++];
|
|
@@ -231,7 +238,7 @@ export const execute = (render_queue, index, image_bitmaps) => {
|
|
|
231
238
|
$context.drawDisplayObject(cacheNode, filterBounds[0], filterBounds[1], filterBounds[2], filterBounds[3], colorTransform);
|
|
232
239
|
}
|
|
233
240
|
else if (useLayer) {
|
|
234
|
-
$context.containerEndLayer(blendMode, matrix, colorTransform, useFilter, filterBounds, filterParams, uniqueKey, filterKey);
|
|
241
|
+
$context.containerEndLayer(blendMode, matrix, colorTransform, useFilter, filterBounds, filterParams, uniqueKey, filterKey, layerScaleX, layerScaleY);
|
|
235
242
|
}
|
|
236
243
|
return index;
|
|
237
244
|
};
|