From 923ef2aad6b7284d745756d938b90965bb92a110 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Sun, 1 Nov 2026 12:30:17 +0400 Subject: fix(render): match native packet distance approximation --- crates/fparkan-render/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crates/fparkan-render') diff --git a/crates/fparkan-render/src/lib.rs b/crates/fparkan-render/src/lib.rs index db0171f..80193c7 100644 --- a/crates/fparkan-render/src/lib.rs +++ b/crates/fparkan-render/src/lib.rs @@ -382,8 +382,9 @@ pub enum LegacyCullMode { /// CPU diffuse alpha for a colourless MSH batch carrying flag `0x0008`. /// -/// `packet_distance` is the distance to the packet's first accepted vertex, -/// after its object transform. Flag `0x0010` takes precedence over `0x0040`. +/// `packet_distance` is the native distance to the input packet's first indexed +/// vertex after its object transform, even when that vertex is outside the +/// viewport. Flag `0x0010` takes precedence over `0x0040`. /// Returns `None` for invalid distance or projection inputs. Callers must keep /// the material alpha for batches with a type-16 colour stream or without `0x0008`. #[must_use] -- cgit v1.2.3