Fix all 7 Cut 5d Soul findings: GL3 Sion perf >=57fps, PVS death gating, crater dedupe, hit-marker filter, loadout baseline, remote dust yaw/speed, distance-gated death trauma
This commit is contained in:
parent
323c02cf8d
commit
fcb91edb0d
16 changed files with 574 additions and 143 deletions
|
|
@ -14,9 +14,9 @@ namespace RustToDust.Client;
|
|||
/// </summary>
|
||||
public partial class SionMapRenderer : Node3D
|
||||
{
|
||||
public const float Lod1DistanceM = 650f;
|
||||
public const float Lod1DistanceM = 520f;
|
||||
public const float CullDistanceM = 2200f;
|
||||
public const float ShadowDistanceM = 450f;
|
||||
public const float ShadowDistanceM = 220f;
|
||||
private const int ChunkGridVerts = 129; // 128 quads per 512m chunk (4m spacing)
|
||||
|
||||
private sealed class BuildingTileEntry
|
||||
|
|
@ -196,17 +196,14 @@ public partial class SionMapRenderer : Node3D
|
|||
void fragment() {
|
||||
vec3 base_col = texture(surface_tex, UV).rgb;
|
||||
|
||||
// Multi-scale crisp world-space micro-grain for up-close ground readability
|
||||
// Crisp world-space micro-grain for up-close ground readability
|
||||
float dist = length((INV_VIEW_MATRIX * vec4(0.0, 0.0, 0.0, 1.0)).xyz - v_world_pos);
|
||||
float near_fade = clamp(1.0 - smoothstep(140.0, 520.0, dist), 0.12, 1.0);
|
||||
float near_fade = clamp(1.0 - smoothstep(140.0, 480.0, dist), 0.12, 1.0);
|
||||
float macro = (value_noise(v_world_pos.xz * 0.28) - 0.5) * 0.07;
|
||||
float micro = (value_noise(v_world_pos.xz * 2.4) - 0.5) * 0.06;
|
||||
float grit = (hash21(floor(v_world_pos.xz * 12.0)) - 0.5) * 0.035;
|
||||
float grit = (hash21(floor(v_world_pos.xz * 8.0)) - 0.5) * 0.045;
|
||||
|
||||
float slope = 1.0 - clamp(v_world_normal.y, 0.0, 1.0);
|
||||
float strata = (value_noise(vec2(v_world_pos.x * 0.15 + v_world_pos.z * 0.15, v_world_pos.y * 0.9)) - 0.5) * 0.10 * smoothstep(0.10, 0.35, slope);
|
||||
|
||||
vec3 col = clamp(base_col + vec3(macro + (micro + grit) * near_fade + strata), vec3(0.0), vec3(1.0));
|
||||
vec3 col = clamp(base_col + vec3(macro + grit * near_fade), vec3(0.0), vec3(1.0));
|
||||
ALBEDO = col;
|
||||
ROUGHNESS = mix(0.88, 0.96, slope);
|
||||
METALLIC = 0.03;
|
||||
|
|
|
|||
Loading…
Reference in a new issue