mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 14:08:28 +00:00
Merge branch 'master' of https://github.com/photonstorm/phaser
This commit is contained in:
commit
7f781786b7
1 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
|||
*/
|
||||
|
||||
var GameObject = require('../GameObject');
|
||||
var Utils = require('../../renderer/webgl/Utils');
|
||||
|
||||
/**
|
||||
* Renders this Game Object with the Canvas Renderer to the given Camera.
|
||||
|
@ -39,7 +40,7 @@ var RenderTextureWebGLRenderer = function (renderer, renderTexture, interpolatio
|
|||
renderTexture.scrollFactorX, renderTexture.scrollFactorY,
|
||||
renderTexture.displayOriginX, renderTexture.displayOriginY,
|
||||
0, 0, renderTexture.texture.width, renderTexture.texture.height,
|
||||
0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff,
|
||||
Utils.getTintAppendFloatAlpha(renderTexture.tintTopLeft, renderTexture.alphaTopLeft), Utils.getTintAppendFloatAlpha(renderTexture.tintTopRight, renderTexture.alphaTopRight), Utils.getTintAppendFloatAlpha(renderTexture.tintBottomLeft, renderTexture.alphaBottomLeft), Utils.getTintAppendFloatAlpha(renderTexture.tintBottomRight, renderTexture.alphaBottomRight),
|
||||
0, 0,
|
||||
camera
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue