Fix Clyde erroneously culling on chunk rendering.

Fixes #912
This commit is contained in:
Pieter-Jan Briers
2020-01-15 03:14:04 +01:00
parent ed134da488
commit b458dd96a3

View File

@@ -110,7 +110,7 @@ namespace Robust.Client.Graphics.Clyde
// Calculate world-space AABB for camera, to cull off-screen things.
var eye = _eyeManager.CurrentEye;
var worldBounds = Box2.CenteredAround(eye.Position.Position,
_framebufferSize / EyeManager.PIXELSPERMETER * eye.Zoom);
_framebufferSize / (float)EyeManager.PIXELSPERMETER * eye.Zoom);
using (DebugGroup("Lights"))
{