Fix Light depth not respecting camera zoom.

This commit is contained in:
Ben Richards 2024-07-08 12:03:43 +12:00
parent acaa8b553f
commit c8c7a65ab0

View file

@ -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(