Skip to content

Commit e58ba6f

Browse files
authored
Merge pull request #497 from bvssvni/master
Updated dependencies
2 parents c3dba30 + 9866af6 commit e58ba6f

19 files changed

Lines changed: 372 additions & 391 deletions

Cargo.toml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,16 @@
11
[package]
22
name = "piston-examples"
33
version = "0.0.0"
4-
edition = "2018"
4+
edition = "2024"
55
authors = ["bvssvni <bvssvni@gmail.com>"]
66
keywords = []
77

8+
[dependencies.piston_window]
9+
version = "0.138.2"
10+
features = ["batteries"]
11+
812
[dependencies]
9-
piston = "1.0.0"
10-
piston2d-graphics = "0.44.0"
11-
pistoncore-glutin_window = "0.72.0"
12-
piston2d-opengl_graphics = "0.85.0"
13-
piston_window = "0.132.0"
1413
find_folder = "0.3.0"
15-
piston-ai_behavior = "0.33.0"
16-
piston2d-sprite = "0.68.0"
17-
image = "0.25.1"
1814
piston2d-drag_controller = "0.30.0"
19-
piston2d-deform_grid = "0.14.0"
20-
gfx = "0.18.1"
21-
gfx_device_gl = "0.16.2"
22-
vecmath = "1.0.0"
23-
camera_controllers = "0.34.0"
15+
piston2d-deform_grid = "0.15.0"
2416
rand = "0.8.5"
25-
shader_version = "0.7.0"

assets/colored_cube.wgsl

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
@group(0) @binding(0)
3+
var<uniform> mvp: mat4x4<f32>;
4+
5+
struct VertexOutput {
6+
@builtin(position) clip_position: vec4<f32>,
7+
@location(0) color: vec4<f32>,
8+
}
9+
10+
@vertex
11+
fn vs_main(
12+
@location(0) position: vec3<f32>,
13+
@location(1) color: vec4<f32>,
14+
) -> VertexOutput {
15+
var out: VertexOutput;
16+
out.clip_position = mvp * vec4<f32>(position, 1.0);
17+
out.color = color;
18+
return out;
19+
}
20+
21+
@fragment
22+
fn fs_main(in: VertexOutput) -> @location(0) vec4<f32> {
23+
return in.color;
24+
}

assets/cube_120.glslf

Lines changed: 0 additions & 8 deletions
This file was deleted.

assets/cube_120.glslv

Lines changed: 0 additions & 9 deletions
This file was deleted.

assets/cube_150.glslf

Lines changed: 0 additions & 9 deletions
This file was deleted.

assets/cube_150.glslv

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)