Skip to content

Commit afec945

Browse files
committed
Pass in the UV values
1 parent c82c099 commit afec945

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/gameobjects/blitter/BlitterWebGLRenderer.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ var BlitterWebGLRenderer = function (renderer, src, interpolationPercentage, cam
5454
var prevTextureSourceIndex = -1;
5555
var tintEffect = false;
5656
var alpha = camera.alpha * src.alpha;
57-
var getTint = Utils.getTintAppendFloatAlpha;
5857
var roundPixels = camera.roundPixels;
5958

6059
for (var index = 0; index < list.length; index++)
@@ -94,8 +93,7 @@ var BlitterWebGLRenderer = function (renderer, src, interpolationPercentage, cam
9493
var tx1 = xw * matrix.a + yh * matrix.c + matrix.e;
9594
var ty1 = xw * matrix.b + yh * matrix.d + matrix.f;
9695

97-
var tint = getTint(0xffffff, bobAlpha);
98-
var uvs = frame.uvs;
96+
var tint = Utils.getTintAppendFloatAlpha(0xffffff, bobAlpha);
9997

10098
// Bind texture only if the Texture Source is different from before
10199
if (frame.sourceIndex !== prevTextureSourceIndex)
@@ -114,7 +112,7 @@ var BlitterWebGLRenderer = function (renderer, src, interpolationPercentage, cam
114112
}
115113

116114
// TL x/y, BL x/y, BR x/y, TR x/y
117-
if (pipeline.batchVertices(tx0, ty0, tx0, ty1, tx1, ty1, tx1, ty0, uvs, tint, tint, tint, tint, tintEffect))
115+
if (pipeline.batchVertices(tx0, ty0, tx0, ty1, tx1, ty1, tx1, ty0, frame.u0, frame.v0, frame.u1, frame.v1, tint, tint, tint, tint, tintEffect))
118116
{
119117
prevTextureSourceIndex = -1;
120118
}

0 commit comments

Comments
 (0)