diff options
| author | Valentin Popov <valentin@popov.link> | 2026-11-12 06:33:53 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-11-12 06:33:53 +0300 |
| commit | 4158e4cc07dd1e152715da3ff9c2c58866c8fb72 (patch) | |
| tree | ea9b3daa20e3222f915b8efd848f4031285ef93f /crates/fparkan-fx/src/environment.rs | |
| parent | bdee85ba7249bc2657eaed8a4796e3382f370939 (diff) | |
| download | fparkan-4158e4cc07dd1e152715da3ff9c2c58866c8fb72.tar.xz fparkan-4158e4cc07dd1e152715da3ff9c2c58866c8fb72.zip | |
fix(render): honor the native robot shadow refresh mask
Diffstat (limited to 'crates/fparkan-fx/src/environment.rs')
| -rw-r--r-- | crates/fparkan-fx/src/environment.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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) |
