Fix terrain resolution in editor.

This commit is contained in:
Daniel Macura
2026-08-03 19:49:39 +02:00
parent 4d589314c8
commit d1b475e690
@@ -29,8 +29,8 @@ namespace FlaxEditor.CustomEditors.Dedicated
patchesCount,
patchesCount * 16,
chunkSize,
1.0f / (resolution.X + 1e-9f),
1.0f / (resolution.Z + 1e-9f),
Mathf.Abs(resolution.X),
Mathf.Abs(resolution.Z),
totalSize.X / Units.Meters2Units * 0.001f,
totalSize.Z / Units.Meters2Units * 0.001f
);