Fix terrain rendering to use the same LOD for main view and shadow passes

#2555 #2256
This commit is contained in:
Wojtek Figat
2024-08-23 00:00:42 +02:00
parent ef540bc498
commit e5f0e05d43
4 changed files with 64 additions and 33 deletions

View File

@@ -1,5 +1,6 @@
// Copyright (c) 2012-2024 Wojciech Figat. All rights reserved.
using FlaxEditor.Utilities;
using FlaxEngine;
namespace FlaxEditor.CustomEditors.Dedicated
@@ -29,8 +30,8 @@ namespace FlaxEditor.CustomEditors.Dedicated
chunkSize,
1.0f / (resolution.X + 1e-9f),
1.0f / (resolution.Z + 1e-9f),
totalSize.X * 0.00001f,
totalSize.Z * 0.00001f
totalSize.X / Units.Meters2Units * 0.001f,
totalSize.Z / Units.Meters2Units * 0.001f
);
var label = layout.Label(text);
label.Label.AutoHeight = true;