From 4158e4cc07dd1e152715da3ff9c2c58866c8fb72 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 12 Nov 2026 07:33:53 +0400 Subject: fix(render): honor the native robot shadow refresh mask --- crates/fparkan-fx/src/environment.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/fparkan-fx/src/environment.rs') diff --git a/crates/fparkan-fx/src/environment.rs b/crates/fparkan-fx/src/environment.rs index 1fc033ab..efc3badc 100644 --- a/crates/fparkan-fx/src/environment.rs +++ b/crates/fparkan-fx/src/environment.rs @@ -187,19 +187,19 @@ pub const LIGHTNING_QUAD_DIMENSIONS: [f32; 3] = [ ]; const NATIVE_RANDOM_SCALE: f32 = 1.0 / 32_768.0; -/// The CRT linear congruential sequence used by Terrain.dll's weather. +/// The CRT linear congruential sequence used by Terrain.dll. /// The environment system passes one stream through each emitter in update order. #[derive(Clone, Copy, Debug)] -struct NativeRng { +pub(crate) struct NativeRng { state: u32, } impl NativeRng { - fn new(seed: u64) -> Self { + pub(crate) fn new(seed: u64) -> Self { Self { state: seed as u32 } } - fn next_u15(&mut self) -> u16 { + pub(crate) fn next_u15(&mut self) -> u16 { self.state = self .state .wrapping_mul(0x0003_43FD) -- cgit v1.2.3