mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 04:33:31 +00:00
Pass in the z value
This commit is contained in:
parent
2137e3413d
commit
55d7b36217
1 changed files with 3 additions and 1 deletions
|
@ -53,6 +53,8 @@ var MeshWebGLRenderer = function (renderer, src, camera, parentMatrix)
|
|||
var e = calcMatrix.e;
|
||||
var f = calcMatrix.f;
|
||||
|
||||
var z = src.camera.position.z;
|
||||
|
||||
var roundPixels = camera.roundPixels;
|
||||
var alpha = camera.alpha * src.alpha;
|
||||
var hideCCW = src.hideCCW;
|
||||
|
@ -61,7 +63,7 @@ var MeshWebGLRenderer = function (renderer, src, camera, parentMatrix)
|
|||
{
|
||||
var face = faces[i];
|
||||
|
||||
if (hideCCW && !face.isCounterClockwise())
|
||||
if (hideCCW && !face.isCounterClockwise(z))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue