Port atmospheric_fog
This commit is contained in:
parent
f695bef4c7
commit
12dda344d8
@ -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((
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user