Port atmospheric_fog

This commit is contained in:
Jan Hohenheim 2025-07-12 02:40:32 +02:00
parent f695bef4c7
commit 12dda344d8
No known key found for this signature in database

View File

@ -7,6 +7,8 @@
//! | `Spacebar` | Toggle Atmospheric Fog |
//! | `S` | Toggle Directional Light Fog Influence |
use std::f32::consts::PI;
use bevy::{
pbr::{CascadeShadowConfigBuilder, NotShadowCaster},
prelude::*,
@ -66,9 +68,12 @@ fn setup_terrain_scene(
));
// Terrain
commands.spawn(SceneRoot(asset_server.load(
GltfAssetLabel::Scene(0).from_asset("models/terrain/Mountains.gltf"),
)));
commands.spawn((
SceneRoot(
asset_server.load(GltfAssetLabel::Scene(0).from_asset("models/terrain/Mountains.gltf")),
),
Transform::from_rotation(Quat::from_rotation_y(PI)),
));
// Sky
commands.spawn((