Upgrade successful, the game runs!

main
Elijah C. Voigt 2 years ago
parent ac7458a0f9
commit 3d613864bd

@ -251,7 +251,7 @@ fn hydrate_camera(
BloomSettings { ..default() }, BloomSettings { ..default() },
Skybox { Skybox {
image: skybox_handle.clone(), image: skybox_handle.clone(),
brightness: 1.0, brightness: 150.0,
}, },
EnvironmentMapLight { EnvironmentMapLight {
diffuse_map: skybox_handle.clone(), diffuse_map: skybox_handle.clone(),

@ -22,8 +22,10 @@ impl Triangle {
} }
fn normal_plane(&self) -> Plane3d { fn normal_plane(&self) -> Plane3d {
Plane3d { // HACK: This should just be `try_from_points` or `try_new`
normal: Direction3d::new(self.normal()).expect("Valid normal direction"), match Direction3d::new((self.v1 - self.v0).cross(self.v2 - self.v0)) {
Ok(normal) => Plane3d { normal },
Err(_) => Plane3d::default(),
} }
} }

@ -11,32 +11,22 @@ pub(crate) use bevy::{
tonemapping::{DebandDither, Tonemapping}, tonemapping::{DebandDither, Tonemapping},
Skybox, Skybox,
}, },
diagnostic::{ diagnostic::*,
DiagnosticsStore, EntityCountDiagnosticsPlugin, FrameTimeDiagnosticsPlugin,
SystemInformationDiagnosticsPlugin,
},
gltf::Gltf, gltf::Gltf,
input::{ input::{
keyboard::KeyboardInput, keyboard::KeyboardInput,
mouse::{MouseButtonInput, MouseMotion, MouseScrollUnit, MouseWheel}, mouse::*,
ButtonState, ButtonState,
}, },
pbr::{ pbr::*,
ScreenSpaceAmbientOcclusionQualityLevel,
ExtendedMaterial, MaterialExtension, ScreenSpaceAmbientOcclusionBundle,
ScreenSpaceAmbientOcclusionSettings,
},
prelude::*, prelude::*,
reflect::TypePath, reflect::TypePath,
render::{ render::{
mesh::{MeshVertexAttribute, VertexAttributeValues}, mesh::*,
render_resource::{ render_resource::*,
AsBindGroup, ShaderRef, TextureViewDescriptor, TextureViewDimension, VertexFormat, view::*,
},
view::ColorGrading,
}, },
utils::BoxedFuture, utils::{hashbrown::hash_map::Iter, HashMap, HashSet, BoxedFuture},
utils::{hashbrown::hash_map::Iter, HashMap, HashSet},
window::PrimaryWindow, window::PrimaryWindow,
winit::WinitWindows, winit::WinitWindows,
}; };

Loading…
Cancel
Save