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