From c699d9891b8b91b9de3a89a62e8d9d130b94133e Mon Sep 17 00:00:00 2001 From: xfy Date: Fri, 17 Jul 2026 14:08:08 +0800 Subject: [PATCH] feat(disk): raise density_freq default to 2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Higher default turbulence frequency gives the volumetric disk more trackable texture features at startup, making the Keplerian rotation (rot ∝ 1/r^1.5) visually readable without needing to open the egui panel. The old 0.8 default produced a near-featureless smooth slab at default settings — the disk was rotating but the eye had nothing to lock onto. 2.0 sits in the upper half of the slider range (0.2–3.0) while still leaving room to push higher for debugging. --- src/params.rs | 2 +- src/render/material.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/params.rs b/src/params.rs index bfa21b6..f83bbf3 100644 --- a/src/params.rs +++ b/src/params.rs @@ -189,7 +189,7 @@ impl Default for BlackHoleParams { disk_half_thickness: 0.15, filament_freq: 1.0, filament_sharpness: 2.0, - density_freq: 0.8, + density_freq: 2.0, // Raised from 1.0: the new density model has no 0.55 floor and decays // to 0 at the edges, so a slightly higher multiplier keeps the bulk // opaque after per-step integration. diff --git a/src/render/material.rs b/src/render/material.rs index ff41e85..0523663 100644 --- a/src/render/material.rs +++ b/src/render/material.rs @@ -101,7 +101,7 @@ impl Default for BlackHoleUniforms { disk_half_thickness: 0.15, filament_freq: 1.0, filament_sharpness: 2.0, - density_freq: 0.8, + density_freq: 2.0, density_strength: 1.2, arm_count: 2.0, arm_tightness: 2.0,