mirror of
https://github.com/photonstorm/phaser
synced 2024-11-16 01:38:23 +00:00
Don't forget to update the batch count
This commit is contained in:
parent
70ef38c03c
commit
3c54c852dc
1 changed files with 7 additions and 0 deletions
|
@ -115,12 +115,19 @@ var PointLightPipeline = new Class({
|
|||
this.flush();
|
||||
}
|
||||
|
||||
if (!this.currentBatch)
|
||||
{
|
||||
this.setTexture2D();
|
||||
}
|
||||
|
||||
this.batchLightVert(x0, y0, lightX, lightY, radius, attenuation, r, g, b, a);
|
||||
this.batchLightVert(x1, y1, lightX, lightY, radius, attenuation, r, g, b, a);
|
||||
this.batchLightVert(x2, y2, lightX, lightY, radius, attenuation, r, g, b, a);
|
||||
this.batchLightVert(x0, y0, lightX, lightY, radius, attenuation, r, g, b, a);
|
||||
this.batchLightVert(x2, y2, lightX, lightY, radius, attenuation, r, g, b, a);
|
||||
this.batchLightVert(x3, y3, lightX, lightY, radius, attenuation, r, g, b, a);
|
||||
|
||||
this.currentBatch.count = (this.vertexCount - this.currentBatch.start);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue