mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 12:43:26 +00:00
Fix Light depth not respecting camera zoom.
This commit is contained in:
parent
acaa8b553f
commit
c8c7a65ab0
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ var BatchHandlerQuadLight = new Class({
|
|||
[
|
||||
vec.x - (camera.scrollX * light.scrollFactorX * camera.zoom),
|
||||
height - (vec.y - (camera.scrollY * light.scrollFactorY * camera.zoom)),
|
||||
light.z
|
||||
light.z * camera.zoom
|
||||
]
|
||||
);
|
||||
program.setUniform(
|
||||
|
|
Loading…
Reference in a new issue