Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
70452ed
feat(aravath): stand and dig on one voxel island
cursoragent Oct 13, 2026
9d69211
feat(aravath): add the movement motor and the demo goals
cursoragent Oct 13, 2026
0d90ed4
feat(aravath): add a single locomotion graph
cursoragent Oct 13, 2026
fd80123
feat(aravath): add sword, shield, lock-on, and three enemies
cursoragent Oct 13, 2026
91a95f4
feat(aravath): place supported voxels and save the edit log
cursoragent Oct 13, 2026
f1f49b0
feat(aravath): stream a ring of mineable chunks around the player
cursoragent Oct 13, 2026
a7f2ead
feat(aravath): texture the ground with a CC0 Poly Haven albedo
cursoragent Oct 13, 2026
f546f58
docs(aravath): record the Windows target check
cursoragent Oct 13, 2026
6918eae
feat(aravath): replace box stand-ins with CC0 character, sword, shiel…
cursoragent Oct 13, 2026
dc1cd13
feat(aravath): drive character clips from movement and combat
cursoragent Oct 13, 2026
8750f09
feat(aravath): give the streamed world biomes, textures, and foliage
cursoragent Oct 13, 2026
2a22bdd
ci(aravath): build the greybox on windows-latest (#206)
lazyxeon Oct 13, 2026
c0be144
feat(aravath): add a combat HUD and save feedback
cursoragent Oct 13, 2026
af9787e
feat(aravath): tighten air control and give enemies a leash
cursoragent Oct 13, 2026
c053fb7
docs(aravath): note air control, mouse capture, and the enemy leash
cursoragent Oct 13, 2026
9b90269
feat(aravath): harden the sim and light it with the engine
cursoragent Oct 13, 2026
1f02064
fix(aravath): log startup failures and skip volumetrics on demand
cursoragent Oct 13, 2026
54c48d9
fix(aravath): import OsStrExt for the Windows loading paint
cursoragent Oct 13, 2026
cd03f06
fix(aravath): step the sim at a fixed 60 Hz
cursoragent Oct 14, 2026
30d45ed
fix(aravath): lock the replay hash across machines
cursoragent Oct 14, 2026
77c516a
fix(render): match WGSL uniform alignment for fog and the other share…
cursoragent Oct 14, 2026
bbef075
Add deterministic fate-scars and sample them in volumetric fog.
cursoragent Oct 14, 2026
f6dd90f
docs(aravath): point demo fiction at the Aravath lore bible
cursoragent Oct 14, 2026
3cb7494
feat(aravath): name the western hills from the internal lore brief
cursoragent Oct 14, 2026
70d92ca
fix(aravath): bound untrusted saves and drop the greybox network stack
cursoragent Oct 14, 2026
116f9e5
build(aravath): publish checksums, an SBOM, and optional Authenticode
cursoragent Oct 14, 2026
d6174bc
fix(aravath): let the Windows workflow start and leave signing unwired
cursoragent Oct 14, 2026
c8f6d48
fix(ci): retry advisory fetches and compile the Windows SDK harness
cursoragent Oct 14, 2026
e4db903
fix(ci): give cargo audit a fresh advisory database
cursoragent Oct 14, 2026
2e5d6e3
fix(ci): check out the repo before publishing the Aravath release
cursoragent Oct 14, 2026
4bfd08e
test(aw-save): lock the postcard and lz4 save bytes
cursoragent Oct 14, 2026
5347f02
fix(deps): bump rustls 0.23 to 0.23.46 and record the 0.22 residuals
cursoragent Oct 14, 2026
30cb7d4
fix(aravath): stop the black frame and the stuck mouse
cursoragent Oct 14, 2026
ca71f94
fix(ci): install libudev before the lavapipe volumetrics test
cursoragent Oct 14, 2026
bca0b3f
fix(render): drop expect from the atmosphere composite
cursoragent Oct 14, 2026
cbb8299
feat(aravath): scatter KayKit forest props on the western hills
cursoragent Oct 15, 2026
f700b60
feat(aravath): dress the greybox in the KayKit CC0 subset
cursoragent Oct 15, 2026
a87a2d3
feat(aravath): report frame time against the 11 ms budget
cursoragent Oct 15, 2026
b0de384
fix(veil): reject scar cell lists above 4096 before insert
cursoragent Oct 15, 2026
c21ce83
fix(ci): stop the greybox gate, hash, and trace-sync failures
cursoragent Oct 15, 2026
7ee34e9
fix(ci): pin Aravath actions and declare read-only workflow tokens
cursoragent Oct 15, 2026
5d63aa0
fix(ci): rustfmt the greybox Windows resource embed
cursoragent Oct 15, 2026
f692385
fix(ci): fetch Git LFS in test jobs and keep joint-matrix capacity exact
cursoragent Oct 15, 2026
2d5fab4
fix(test): generate beep wavs privately and probe depth textureLoad
cursoragent Oct 15, 2026
4794ee1
fix(lock): record aw_asset_cli's tokio dependency
cursoragent Oct 16, 2026
21db926
fix(docs): restore veil runtime edges after the weaving rebase
cursoragent Oct 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(render): match WGSL uniform alignment for fog and the other share…
…d structs

FogDensityParams was 144 bytes against a 160-byte shader, which is the
dispatch wgpu rejects on a real GPU. The padding matches PR #209.
CascadeData, AtmosphereParams, and SimParams had the same vec3 gap.
A layout test now checks every same-named uniform and storage struct.

Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
  • Loading branch information
cursoragent and lazyxeon committed Oct 16, 2026
commit 77c516a98363d971e2696af694a21d2f6b86535b
4 changes: 4 additions & 0 deletions .github/workflows/aravath-determinism.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v5
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed

- name: Install Linux link dependencies
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y pkg-config libudev-dev libasound2-dev

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@1.89.0
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed

Expand Down
52 changes: 26 additions & 26 deletions astraweave-render/src/atmosphere.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,27 @@ use wgpu::util::DeviceExt;
#[repr(C)]
#[derive(Debug, Clone, Copy, Pod, Zeroable)]
pub struct AtmosphereParams {
pub planet_radius: f32, // 4
pub atmosphere_height: f32, // 8
pub rayleigh_scale_h: f32, // 12
pub _pad0: f32, // 16 (align rayleigh_scatter to 16)
pub rayleigh_scatter: [f32; 3], // 28
pub mie_scale_h: f32, // 32
pub mie_scatter: f32, // 36
pub mie_absorption: f32, // 40
pub mie_g: f32, // 44
pub _pad1: f32, // 48 (align ozone block)
pub ozone_center_h: f32, // 52
pub ozone_width: f32, // 56
pub ozone_absorption: [f32; 3], // 68
pub _pad2: f32, // 72
pub lut_width: u32, // 76
pub lut_height: u32, // 80
pub _pad3: u32, // 84
pub _pad4: u32, // 88
pub _pad5: u32, // 92
pub _pad6: u32, // 96
pub planet_radius: f32,
pub atmosphere_height: f32,
pub rayleigh_scale_h: f32,
/// WGSL aligns `rayleigh_scatter` to 16, so this gap is byte 12.
pub _align_rayleigh: f32,
pub rayleigh_scatter: [f32; 3],
pub _pad0: f32,
pub mie_scale_h: f32,
pub mie_scatter: f32,
pub mie_absorption: f32,
pub mie_g: f32,
pub ozone_center_h: f32,
pub ozone_width: f32,
/// WGSL aligns `ozone_absorption` to 16, so these two floats fill bytes 56..64.
pub _align_ozone: [f32; 2],
pub ozone_absorption: [f32; 3],
pub _pad1: f32,
pub lut_width: u32,
pub lut_height: u32,
pub _pad2: u32,
pub _pad3: u32,
}

/// Sky render pass parameters.
Expand Down Expand Up @@ -469,23 +470,22 @@ impl AtmospherePass {
planet_radius: c.planet_radius,
atmosphere_height: c.atmosphere_height,
rayleigh_scale_h: c.rayleigh_scale_h,
_pad0: 0.0,
_align_rayleigh: 0.0,
rayleigh_scatter: c.rayleigh_scatter.to_array(),
_pad0: 0.0,
mie_scale_h: c.mie_scale_h,
mie_scatter: c.mie_scatter,
mie_absorption: c.mie_absorption,
mie_g: c.mie_g,
_pad1: 0.0,
ozone_center_h: c.ozone_center_h,
ozone_width: c.ozone_width,
_align_ozone: [0.0; 2],
ozone_absorption: c.ozone_absorption.to_array(),
_pad2: 0.0,
_pad1: 0.0,
lut_width: c.lut_width,
lut_height: c.lut_height,
_pad2: 0,
_pad3: 0,
_pad4: 0,
_pad5: 0,
_pad6: 0,
};
queue.write_buffer(&self.lut_params_buf, 0, bytemuck::bytes_of(&lut_params));
}
Expand Down
6 changes: 5 additions & 1 deletion astraweave-render/src/particle_forces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ pub struct SimParams {
pub turbulence_freq: f32,
pub turbulence_speed: f32,
pub time: f32,
/// WGSL aligns `attractor_pos` to 16.
pub _align_attractor: f32,
pub attractor_pos: [f32; 3],
pub attractor_str: f32,
pub color0: [f32; 4],
Expand Down Expand Up @@ -305,6 +307,7 @@ impl ParticleSimPass {
turbulence_freq: forces.turbulence_frequency,
turbulence_speed: forces.turbulence_speed,
time: self.time,
_align_attractor: 0.0,
attractor_pos: forces.attractor_pos.to_array(),
attractor_str: forces.attractor_strength,
color0: gradient.color0,
Expand Down Expand Up @@ -352,7 +355,8 @@ mod tests {

#[test]
fn sim_params_size() {
assert_eq!(std::mem::size_of::<SimParams>(), 172);
assert_eq!(std::mem::size_of::<SimParams>(), 176);
assert_eq!(std::mem::offset_of!(SimParams, attractor_pos), 64);
}

#[test]
Expand Down
2 changes: 2 additions & 0 deletions astraweave-render/src/renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5158,7 +5158,9 @@ fn vs(input: VSIn) -> VSOut {
std::array::from_fn(|index| crate::volumetric_fog::CascadeData {
vp: self.cascades[index].to_cols_array_2d(),
split: splits[index],
_align: [0.0; 3],
_pad: [0.0; 3],
_tail: 0.0,
});
let device = self.device.clone();
let queue = self.queue.clone();
Expand Down
29 changes: 23 additions & 6 deletions astraweave-render/src/volumetric_fog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ pub struct FogDensityParams {
pub view_pos: [f32; 3],
pub near_plane: f32,
pub far_plane: f32,
/// WGSL `vec3` is 16-byte aligned, so `froxel_dims` starts at byte 96.
/// Same padding as the scar branch (PR #209).
pub _pad_froxel: [f32; 3],
pub froxel_dims: [u32; 3],
pub base_density: f32,
pub height_fog_density: f32,
Expand All @@ -34,6 +37,8 @@ pub struct FogDensityParams {
pub noise_intensity: f32,
pub noise_speed: f32,
pub time: f32,
/// `wind_dir` is a `vec3` and starts at byte 144.
pub _pad_wind: f32,
pub wind_dir: [f32; 3],
pub _pad: f32,
}
Expand All @@ -46,6 +51,9 @@ pub struct ScatterParams {
pub view_pos: [f32; 3],
pub near_plane: f32,
pub far_plane: f32,
/// WGSL `vec3` alignment. `froxel_dims` starts at byte 96.
/// Same padding as the scar branch (PR #209).
pub _pad_froxel: [f32; 3],
pub froxel_dims: [u32; 3],
pub anisotropy: f32,
pub sun_dir: [f32; 3],
Expand Down Expand Up @@ -89,7 +97,10 @@ pub struct ApplyParams {
pub struct CascadeData {
pub vp: [[f32; 4]; 4],
pub split: f32,
/// WGSL `vec3` alignment puts `_pad` at byte 80. Storage size rounds to 96.
pub _align: [f32; 3],
pub _pad: [f32; 3],
pub _tail: f32,
}

// ---------------------------------------------------------------------------
Expand Down Expand Up @@ -532,6 +543,7 @@ impl VolumetricFogPass {
view_pos: view_pos.to_array(),
near_plane: near,
far_plane: far,
_pad_froxel: [0.0; 3],
froxel_dims: [fx, fy, fz],
base_density: self.config.base_density,
height_fog_density: self.config.height_fog_density,
Expand All @@ -541,6 +553,7 @@ impl VolumetricFogPass {
noise_intensity: self.config.noise_intensity,
noise_speed: self.config.noise_speed,
time: self.time,
_pad_wind: 0.0,
wind_dir: self.config.wind_dir.to_array(),
_pad: 0.0,
};
Expand All @@ -556,6 +569,7 @@ impl VolumetricFogPass {
view_pos: view_pos.to_array(),
near_plane: near,
far_plane: far,
_pad_froxel: [0.0; 3],
froxel_dims: [fx, fy, fz],
anisotropy: self.config.anisotropy,
sun_dir: sun_dir.to_array(),
Expand Down Expand Up @@ -991,15 +1005,16 @@ mod tests {

#[test]
fn fog_density_params_size() {
// mat4(64) + vec3+f32(16) + f32+uvec3(16) + 4×f32(16) + 4×f32(16) + vec3+f32(16) = 144
assert_eq!(std::mem::size_of::<FogDensityParams>(), 144);
assert_eq!(std::mem::size_of::<FogDensityParams>(), 160);
assert_eq!(std::mem::offset_of!(FogDensityParams, froxel_dims), 96);
assert_eq!(std::mem::offset_of!(FogDensityParams, wind_dir), 144);
}

#[test]
fn scatter_params_size() {
// mat4(64) + vec3+f32(16) + f32+uvec3(16) + f32+vec3+f32(16) + vec3+f32(16)
// + vec3+f32(16) + u32+3×f32(16) = 164 (Rust alignment padding)
assert_eq!(std::mem::size_of::<ScatterParams>(), 164);
assert_eq!(std::mem::size_of::<ScatterParams>(), 176);
assert_eq!(std::mem::offset_of!(ScatterParams, froxel_dims), 96);
assert_eq!(std::mem::offset_of!(ScatterParams, ambient_color), 144);
}

#[test]
Expand All @@ -1015,7 +1030,9 @@ mod tests {

#[test]
fn cascade_data_size() {
assert_eq!(std::mem::size_of::<CascadeData>(), 80);
assert_eq!(std::mem::size_of::<CascadeData>(), 96);
assert_eq!(std::mem::offset_of!(CascadeData, split), 64);
assert_eq!(std::mem::offset_of!(CascadeData, _pad), 80);
}

#[test]
Expand Down
Loading