mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 22:52:14 +00:00
Fixed Mesh Renderer to work with PostFX
This commit is contained in:
parent
ae83886729
commit
392640fe93
1 changed files with 3 additions and 7 deletions
|
@ -36,6 +36,9 @@ var MeshWebGLRenderer = function (renderer, src, camera, parentMatrix)
|
|||
|
||||
var calcMatrix = GetCalcMatrix(src, camera, parentMatrix).calc;
|
||||
|
||||
// This causes a flush if the Mesh has a Post Pipeline
|
||||
renderer.pipelines.preBatch(src);
|
||||
|
||||
var textureUnit = pipeline.setGameObject(src);
|
||||
|
||||
var F32 = pipeline.vertexViewF32;
|
||||
|
@ -63,13 +66,6 @@ var MeshWebGLRenderer = function (renderer, src, camera, parentMatrix)
|
|||
|
||||
var totalFacesRendered = 0;
|
||||
|
||||
renderer.pipelines.preBatch(src);
|
||||
|
||||
if (!pipeline.currentBatch)
|
||||
{
|
||||
textureUnit = pipeline.setGameObject(src);
|
||||
}
|
||||
|
||||
for (var i = 0; i < totalFaces; i++)
|
||||
{
|
||||
var face = faces[i];
|
||||
|
|
Loading…
Reference in a new issue