mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 15:12:18 +00:00
Removed dead code.
This commit is contained in:
parent
c27b2f9fca
commit
8e2c5b7669
1 changed files with 1 additions and 50 deletions
|
@ -16,61 +16,12 @@ Phaser.Renderer.WebGL.GameObjects.Image = {
|
|||
return;
|
||||
}
|
||||
|
||||
// The below works
|
||||
|
||||
var uvs = frame.uvs;
|
||||
var verts = src.transform.glVertextData;
|
||||
var index = src.frame.source.glTextureIndex;
|
||||
var tint = src.color._glTint;
|
||||
var bg = src.color._glBg;
|
||||
|
||||
renderer.batch.add(frame.source, src.blendMode, verts, uvs, index, alpha, tint, bg);
|
||||
|
||||
/*
|
||||
|
||||
// var verts = src.transform.cloneVertexData();
|
||||
var worldAlpha = 0.2;
|
||||
|
||||
// 0.2, 0.4, 0.6, 0.8, 1
|
||||
|
||||
// xy0 Top Left Vert
|
||||
// xy1 Top Right Vert
|
||||
// xy2 Bottom Right Vert
|
||||
// xy3 Bottom Left Vert
|
||||
|
||||
// Let's just try 5 clones below the current sprite?
|
||||
|
||||
verts.x0 += 8 * 5;
|
||||
verts.x1 += 8 * 5;
|
||||
verts.x2 += 8 * 5;
|
||||
verts.x3 += 8 * 5;
|
||||
|
||||
verts.y0 += 8 * 5;
|
||||
verts.y1 += 8 * 5;
|
||||
verts.y2 += 8 * 5;
|
||||
verts.y3 += 8 * 5;
|
||||
|
||||
|
||||
for (var i = 0; i < 5; i++)
|
||||
{
|
||||
alpha = worldAlpha * 255 << 24;
|
||||
|
||||
renderer.spriteBatch.addToBatch(src, verts, uvs, index, alpha, tint, bg);
|
||||
|
||||
verts.x0 -= 8;
|
||||
verts.x1 -= 8;
|
||||
verts.x2 -= 8;
|
||||
verts.x3 -= 8;
|
||||
|
||||
verts.y0 -= 8;
|
||||
verts.y1 -= 8;
|
||||
verts.y2 -= 8;
|
||||
verts.y3 -= 8;
|
||||
|
||||
worldAlpha += 0.2;
|
||||
}
|
||||
*/
|
||||
|
||||
renderer.batch.add(frame.source, src.blendMode, verts, frame.uvs, index, alpha, tint, bg);
|
||||
}
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue