update deps
This commit is contained in:
parent
1a7a6707d9
commit
320171e304
3 changed files with 456 additions and 212 deletions
627
Cargo.lock
generated
627
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
25
Cargo.toml
25
Cargo.toml
|
@ -6,19 +6,20 @@ edition = "2021"
|
|||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
winit = "0.26"
|
||||
env_logger = "0.9"
|
||||
log = "0.4"
|
||||
wgpu = "0.13"
|
||||
pollster = "0.2"
|
||||
bytemuck = { version = "1.4", features = [ "derive" ] }
|
||||
image = { version = "0.24", features = [ "png", "tga" ] }
|
||||
anyhow = "1.0"
|
||||
winit = "0.27.5"
|
||||
env_logger = "0.10.0"
|
||||
log = "0.4.17"
|
||||
wgpu = "0.14.2"
|
||||
pollster = "0.2.5"
|
||||
bytemuck = { version = "1.13.0", features = ["derive"] }
|
||||
image = { version = "0.24.5", features = ["png", "tga"] }
|
||||
anyhow = "1.0.68"
|
||||
cgmath = "0.18"
|
||||
tobj = { version = "3.2.1", features = [ "async", ] }
|
||||
tobj = { version = "3.2.1", features = ["async"] }
|
||||
gltf = "1.0.0"
|
||||
wgpu-types = "0.14.1"
|
||||
|
||||
[build-dependencies]
|
||||
anyhow = "1.0"
|
||||
fs_extra = "1.2"
|
||||
glob = "0.3"
|
||||
anyhow = "1.0.68"
|
||||
fs_extra = "1.2.0"
|
||||
glob = "0.3.1"
|
||||
|
|
|
@ -70,6 +70,7 @@ impl State {
|
|||
width: size.width,
|
||||
height: size.height,
|
||||
present_mode: wgpu::PresentMode::Fifo,
|
||||
alpha_mode: wgpu::CompositeAlphaMode::Opaque,
|
||||
};
|
||||
|
||||
surface.configure(&device, &config);
|
||||
|
@ -192,10 +193,14 @@ impl State {
|
|||
label: Some("texture_bind_group_layout"),
|
||||
});
|
||||
|
||||
let obj_model =
|
||||
resources::load_model_gltf("sponza/Sponza.gltf", &device, &queue, &texture_bind_group_layout)
|
||||
.await
|
||||
.unwrap();
|
||||
let obj_model = resources::load_model_gltf(
|
||||
"sponza/Sponza.gltf",
|
||||
&device,
|
||||
&queue,
|
||||
&texture_bind_group_layout,
|
||||
)
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
let instances: Vec<Instance>;
|
||||
if NUM_INSTANCES_PER_ROW > 1 {
|
||||
|
@ -346,7 +351,8 @@ impl State {
|
|||
// Update the light
|
||||
let old_position: cgmath::Vector3<_> = self.light_uniform.position.into();
|
||||
self.light_uniform.position =
|
||||
(cgmath::Quaternion::from_angle_y(cgmath::Deg(90.0 * dt.as_secs_f32())) * old_position).into();
|
||||
(cgmath::Quaternion::from_angle_y(cgmath::Deg(90.0 * dt.as_secs_f32())) * old_position)
|
||||
.into();
|
||||
self.queue.write_buffer(
|
||||
&self.light_buffer,
|
||||
0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue