fix(cut5): release ymir_box3d in debug, delete sion LOS staggering, 4m chunks
This commit is contained in:
parent
1864acecb7
commit
cdce8cd843
11 changed files with 504 additions and 133 deletions
|
|
@ -9,5 +9,6 @@
|
|||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\src\RustToDust.Ymir\RustToDust.Ymir.csproj" />
|
||||
<ProjectReference Include="$(YmirRoot)/src/Ymir.Box3D/Ymir.Box3D.csproj" AdditionalProperties="YmirNativeConfiguration=$(YmirNativeConfiguration)" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ public partial class SionMapRenderer : Node3D
|
|||
public const float Lod1DistanceM = 650f;
|
||||
public const float CullDistanceM = 2200f;
|
||||
public const float ShadowDistanceM = 450f;
|
||||
private const int ChunkGridVerts = 65; // 64 quads per 512m chunk (8m spacing)
|
||||
private const int ChunkGridVerts = 129; // 128 quads per 512m chunk (4m spacing)
|
||||
|
||||
private sealed class BuildingTileEntry
|
||||
{
|
||||
|
|
@ -202,7 +202,7 @@ public partial class SionMapRenderer : Node3D
|
|||
int n = ChunkGridVerts;
|
||||
float step = tileSize / (n - 1);
|
||||
|
||||
// Precompute shared index buffer for every 65x65 chunk (Godot ArrayMesh cull_back uses CW front-facing winding)
|
||||
// Precompute shared index buffer for every terrain chunk (Godot ArrayMesh cull_back uses CW front-facing winding)
|
||||
int quadCount = (n - 1) * (n - 1);
|
||||
var indices = new int[quadCount * 6];
|
||||
int ii = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue