fix(render): match native packet distance approximation
Docs Deploy / Build and Deploy MkDocs (push) Successful in 1m15s

This commit is contained in:
Valentin Popov committed 2026-11-01 12:30:17 +04:00
1 parent 9533c1a927
commit 923ef2aad6
7 files changed
+188 -40

No files matched your search

+3 -2
View File
@@ -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]