Skip to content

Commit

Permalink
Fixed rendering calls. Fix #5712
Browse files Browse the repository at this point in the history
  • Loading branch information
photonstorm committed May 26, 2021
1 parent 3b160a2 commit 5d9d543
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/gameobjects/shape/FillPathWebGL.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var FillPathWebGL = function (pipeline, calcMatrix, src, alpha, dx, dy)
var tx2 = calcMatrix.getX(x2, y2);
var ty2 = calcMatrix.getY(x2, y2);

pipeline.batchTri(tx0, ty0, tx1, ty1, tx2, ty2, fillTintColor, fillTintColor, fillTintColor);
pipeline.batchTri(src, tx0, ty0, tx1, ty1, tx2, ty2, 0, 0, 1, 1, fillTintColor, fillTintColor, fillTintColor, 1);
}
};

Expand Down
6 changes: 3 additions & 3 deletions src/gameobjects/shape/isobox/IsoBoxWebGLRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ var IsoBoxWebGLRenderer = function (renderer, src, camera, parentMatrix)
x3 = calcMatrix.getX(0, sizeB - height);
y3 = calcMatrix.getY(0, sizeB - height);

pipeline.batchQuad(x0, y0, x1, y1, x2, y2, x3, y3, tint, tint, tint, tint);
pipeline.batchQuad(src, x0, y0, x1, y1, x2, y2, x3, y3, 0, 0, 1, 1, tint, tint, tint, tint, 1);
}

// Left Face
Expand All @@ -100,7 +100,7 @@ var IsoBoxWebGLRenderer = function (renderer, src, camera, parentMatrix)
x3 = calcMatrix.getX(-sizeA, -height);
y3 = calcMatrix.getY(-sizeA, -height);

pipeline.batchQuad(x0, y0, x1, y1, x2, y2, x3, y3, tint, tint, tint, tint);
pipeline.batchQuad(src, x0, y0, x1, y1, x2, y2, x3, y3, 0, 0, 1, 1, tint, tint, tint, tint, 1);
}

// Right Face
Expand All @@ -121,7 +121,7 @@ var IsoBoxWebGLRenderer = function (renderer, src, camera, parentMatrix)
x3 = calcMatrix.getX(sizeA, -height);
y3 = calcMatrix.getY(sizeA, -height);

pipeline.batchQuad(x0, y0, x1, y1, x2, y2, x3, y3, tint, tint, tint, tint);
pipeline.batchQuad(src, x0, y0, x1, y1, x2, y2, x3, y3, 0, 0, 1, 1, tint, tint, tint, tint, 1);
}

renderer.pipelines.postBatch(src);
Expand Down
6 changes: 3 additions & 3 deletions src/gameobjects/shape/isotriangle/IsoTriangleWebGLRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ var IsoTriangleWebGLRenderer = function (renderer, src, camera, parentMatrix)
var x3 = calcMatrix.getX(0, sizeB - height);
var y3 = calcMatrix.getY(0, sizeB - height);

pipeline.batchQuad(x0, y0, x1, y1, x2, y2, x3, y3, tint, tint, tint, tint);
pipeline.batchQuad(src, x0, y0, x1, y1, x2, y2, x3, y3, 0, 0, 1, 1, tint, tint, tint, tint, 1);
}

// Left Face
Expand Down Expand Up @@ -109,7 +109,7 @@ var IsoTriangleWebGLRenderer = function (renderer, src, camera, parentMatrix)
y2 = calcMatrix.getY(0, sizeB - height);
}

pipeline.batchTri(x0, y0, x1, y1, x2, y2, tint, tint, tint);
pipeline.batchTri(src, x0, y0, x1, y1, x2, y2, 0, 0, 1, 1, tint, tint, tint, 1);
}

// Right Face
Expand Down Expand Up @@ -141,7 +141,7 @@ var IsoTriangleWebGLRenderer = function (renderer, src, camera, parentMatrix)
y2 = calcMatrix.getY(0, sizeB - height);
}

pipeline.batchTri(x0, y0, x1, y1, x2, y2, tint, tint, tint);
pipeline.batchTri(src, x0, y0, x1, y1, x2, y2, 0, 0, 1, 1, tint, tint, tint, 1);
}

renderer.pipelines.postBatch(src);
Expand Down

0 comments on commit 5d9d543

Please sign in to comment.