forked from phaserjs/phaser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRenderTextureWebGLRenderer.js
More file actions
28 lines (25 loc) · 1.02 KB
/
Copy pathRenderTextureWebGLRenderer.js
File metadata and controls
28 lines (25 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
var GameObject = require('../GameObject');
var RenderTextureWebGLRenderer = function (renderer, renderTexture, interpolationPercentage, camera)
{
if (GameObject.RENDER_MASK !== renderTexture.renderFlags || (renderTexture.cameraFilter > 0 && (renderTexture.cameraFilter & camera._id)))
{
return;
}
this.pipeline.batchTexture(
renderTexture,
renderTexture.texture,
renderTexture.texture.width, renderTexture.texture.height,
renderTexture.x, renderTexture.y,
renderTexture.width, renderTexture.height,
renderTexture.scaleX, renderTexture.scaleY,
renderTexture.rotation,
renderTexture.flipX, renderTexture.flipY,
renderTexture.scrollFactorX, renderTexture.scrollFactorY,
renderTexture.displayOriginX, renderTexture.displayOriginY,
0, 0, renderTexture.texture.width, renderTexture.texture.height,
0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff,
0, 0,
camera
);
};
module.exports = RenderTextureWebGLRenderer;