Open
Description
Bevy version
0.16.1
Relevant system information
If you cannot get Bevy to build or run on your machine, please include:
- cargo 1.88.0 (873a06493 2025-05-10)
- iOS 15.1 (24B2083)
AdapterInfo { name: "Apple M4 Pro", vendor: 0, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Metal }
What you did
The two cuboids should be next to each other. Set the camera FOV to 0.1
to see the effect more
commands.spawn((
Mesh3d(meshes.add(Mesh::from(Cuboid::new(1.0, 1.0, 1.0).mesh()))),
Transform::from_scale(Vec3::splat(128.0)).with_translation(Vec3::new(192.0, 64.0, -128.0)),
MeshMaterial3d(materials.add(Color::srgb(1.0, 0.0, 0.0))),
));
commands.spawn((
FogVolume {
//density_texture: Some(noise_texture),
density_factor: 0.05,
..default()
},
Transform::from_scale(Vec3::splat(128.0)).with_translation(Vec3::new(64.0, 64.0, -128.0)),
));
What went wrong
- what were you expecting?
- There should be two cubes next to each other in the same pos no matter if the camera moves or not
- what actually happened?
- The fog volume moves around while the camera moves around