@next2d/webgl 1.18.10 → 1.18.12
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/dist/CanvasToWebGLContext.js +12 -12
- package/package.json +2 -2
|
@@ -430,7 +430,7 @@ export class CanvasToWebGLContext {
|
|
|
430
430
|
* @public
|
|
431
431
|
*/
|
|
432
432
|
drawInstacedArray() {
|
|
433
|
-
this.blend.drawInstacedArray();
|
|
433
|
+
this._$blend.drawInstacedArray();
|
|
434
434
|
}
|
|
435
435
|
/**
|
|
436
436
|
* @return {void}
|
|
@@ -438,7 +438,7 @@ export class CanvasToWebGLContext {
|
|
|
438
438
|
* @public
|
|
439
439
|
*/
|
|
440
440
|
clearInstacedArray() {
|
|
441
|
-
this.blend.clearInstacedArray();
|
|
441
|
+
this._$blend.clearInstacedArray();
|
|
442
442
|
}
|
|
443
443
|
/**
|
|
444
444
|
* @description 描画用のbufferをbind
|
|
@@ -505,7 +505,7 @@ export class CanvasToWebGLContext {
|
|
|
505
505
|
._$frameBufferManager
|
|
506
506
|
.textureManager
|
|
507
507
|
.bind0(texture, this._$imageSmoothingEnabled);
|
|
508
|
-
this.blend.toOperation("normal");
|
|
508
|
+
this._$blend.toOperation("normal");
|
|
509
509
|
shader._$drawImage();
|
|
510
510
|
}
|
|
511
511
|
/**
|
|
@@ -696,7 +696,7 @@ export class CanvasToWebGLContext {
|
|
|
696
696
|
case "alpha":
|
|
697
697
|
case "erase":
|
|
698
698
|
case "copy":
|
|
699
|
-
this.blend.drawInstance(position, ct0, ct1, ct2, ct3, ct4, ct5, ct6, ct7, this._$globalCompositeOperation, this._$viewportWidth, this._$viewportHeight, this._$matrix, this._$imageSmoothingEnabled);
|
|
699
|
+
this._$blend.drawInstance(position, ct0, ct1, ct2, ct3, ct4, ct5, ct6, ct7, this._$globalCompositeOperation, this._$viewportWidth, this._$viewportHeight, this._$matrix, this._$imageSmoothingEnabled);
|
|
700
700
|
break;
|
|
701
701
|
default:
|
|
702
702
|
{
|
|
@@ -704,7 +704,7 @@ export class CanvasToWebGLContext {
|
|
|
704
704
|
._$frameBufferManager
|
|
705
705
|
.textureManager
|
|
706
706
|
.getAtlasTexture(position.index);
|
|
707
|
-
this.blend.drawInstanceBlend(atlasTexture, x_min, y_min, x_max, y_max, ct0, ct1, ct2, ct3, ct4, ct5, ct6, ct7, position, this._$globalCompositeOperation, this._$viewportWidth, this._$viewportHeight, this._$matrix, this._$imageSmoothingEnabled);
|
|
707
|
+
this._$blend.drawInstanceBlend(atlasTexture, x_min, y_min, x_max, y_max, ct0, ct1, ct2, ct3, ct4, ct5, ct6, ct7, position, this._$globalCompositeOperation, this._$viewportWidth, this._$viewportHeight, this._$matrix, this._$imageSmoothingEnabled);
|
|
708
708
|
}
|
|
709
709
|
break;
|
|
710
710
|
}
|
|
@@ -738,7 +738,7 @@ export class CanvasToWebGLContext {
|
|
|
738
738
|
ct5 = color_transform[5] / 255;
|
|
739
739
|
ct6 = color_transform[6] / 255;
|
|
740
740
|
}
|
|
741
|
-
this.blend.drawImage(image, x, y, w, h, ct0, ct1, ct2, ct3, ct4, ct5, ct6, ct7, this._$globalCompositeOperation, this._$viewportWidth, this._$viewportHeight, this._$matrix, this._$imageSmoothingEnabled);
|
|
741
|
+
this._$blend.drawImage(image, x, y, w, h, ct0, ct1, ct2, ct3, ct4, ct5, ct6, ct7, this._$globalCompositeOperation, this._$viewportWidth, this._$viewportHeight, this._$matrix, this._$imageSmoothingEnabled);
|
|
742
742
|
}
|
|
743
743
|
/**
|
|
744
744
|
* @param {number} r
|
|
@@ -1403,13 +1403,13 @@ export class CanvasToWebGLContext {
|
|
|
1403
1403
|
const shader = variants.getBitmapFilterShader(transformsBase, transformsBlur, is_glow, type, knockout, appliesStrength, isGradient);
|
|
1404
1404
|
variants.setBitmapFilterUniform(shader.uniform, width, height, base_width, base_height, base_offset_x, base_offset_y, blur_width, blur_height, blur_offset_x, blur_offset_y, is_glow, strength, color_r1, color_g1, color_b1, color_a1, color_r2, color_g2, color_b2, color_a2, transformsBase, transformsBlur, appliesStrength, isGradient);
|
|
1405
1405
|
if (!isInner) {
|
|
1406
|
-
this.blend.toOneZero();
|
|
1406
|
+
this._$blend.toOneZero();
|
|
1407
1407
|
}
|
|
1408
1408
|
else if (knockout) {
|
|
1409
|
-
this.blend.toSourceIn();
|
|
1409
|
+
this._$blend.toSourceIn();
|
|
1410
1410
|
}
|
|
1411
1411
|
else {
|
|
1412
|
-
this.blend.toSourceAtop();
|
|
1412
|
+
this._$blend.toSourceAtop();
|
|
1413
1413
|
}
|
|
1414
1414
|
shader._$drawImage();
|
|
1415
1415
|
if (!isInner) {
|
|
@@ -1436,7 +1436,7 @@ export class CanvasToWebGLContext {
|
|
|
1436
1436
|
.getColorMatrixFilterShader();
|
|
1437
1437
|
variants
|
|
1438
1438
|
.setColorMatrixFilterUniform(shader.uniform, matrix);
|
|
1439
|
-
this.blend.reset();
|
|
1439
|
+
this._$blend.reset();
|
|
1440
1440
|
shader._$drawImage();
|
|
1441
1441
|
}
|
|
1442
1442
|
/**
|
|
@@ -1473,7 +1473,7 @@ export class CanvasToWebGLContext {
|
|
|
1473
1473
|
const shader = variants
|
|
1474
1474
|
.getConvolutionFilterShader(matrix_x, matrix_y, preserve_alpha, clamp);
|
|
1475
1475
|
variants.setConvolutionFilterUniform(shader.uniform, width, height, matrix, divisor, bias, clamp, color_r, color_g, color_b, color_a);
|
|
1476
|
-
this.blend.reset();
|
|
1476
|
+
this._$blend.reset();
|
|
1477
1477
|
shader._$drawImage();
|
|
1478
1478
|
}
|
|
1479
1479
|
/**
|
|
@@ -1518,7 +1518,7 @@ export class CanvasToWebGLContext {
|
|
|
1518
1518
|
const shader = variants
|
|
1519
1519
|
.getDisplacementMapFilterShader(component_x, component_y, mode);
|
|
1520
1520
|
variants.setDisplacementMapFilterUniform(shader.uniform, map.width, map.height, base_width, base_height, point.x, point.y, scale_x, scale_y, mode, color_r, color_g, color_b, color_a);
|
|
1521
|
-
this.blend.reset();
|
|
1521
|
+
this._$blend.reset();
|
|
1522
1522
|
shader._$drawImage();
|
|
1523
1523
|
this
|
|
1524
1524
|
._$frameBufferManager
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next2d/webgl",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.12",
|
|
4
4
|
"description": "Next2D Webgl Packages",
|
|
5
5
|
"author": "Toshiyuki Ienaga<ienaga@tvon.jp> (https://github.com/ienaga/)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,6 +32,6 @@
|
|
|
32
32
|
"url": "git+https://github.com/Next2D/Player.git"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@next2d/share": "1.18.
|
|
35
|
+
"@next2d/share": "1.18.12"
|
|
36
36
|
}
|
|
37
37
|
}
|