Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 6 additions & 15 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,25 +1,16 @@
[package]
name = "piston-examples"
version = "0.0.0"
edition = "2018"
edition = "2024"
authors = ["bvssvni <bvssvni@gmail.com>"]
keywords = []

[dependencies.piston_window]
version = "0.138.2"
features = ["batteries"]

[dependencies]
piston = "1.0.0"
piston2d-graphics = "0.44.0"
pistoncore-glutin_window = "0.72.0"
piston2d-opengl_graphics = "0.85.0"
piston_window = "0.132.0"
find_folder = "0.3.0"
piston-ai_behavior = "0.33.0"
piston2d-sprite = "0.68.0"
image = "0.25.1"
piston2d-drag_controller = "0.30.0"
piston2d-deform_grid = "0.14.0"
gfx = "0.18.1"
gfx_device_gl = "0.16.2"
vecmath = "1.0.0"
camera_controllers = "0.34.0"
piston2d-deform_grid = "0.15.0"
rand = "0.8.5"
shader_version = "0.7.0"
24 changes: 24 additions & 0 deletions assets/colored_cube.wgsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

@group(0) @binding(0)
var<uniform> mvp: mat4x4<f32>;

struct VertexOutput {
@builtin(position) clip_position: vec4<f32>,
@location(0) color: vec4<f32>,
}

@vertex
fn vs_main(
@location(0) position: vec3<f32>,
@location(1) color: vec4<f32>,
) -> VertexOutput {
var out: VertexOutput;
out.clip_position = mvp * vec4<f32>(position, 1.0);
out.color = color;
return out;
}

@fragment
fn fs_main(in: VertexOutput) -> @location(0) vec4<f32> {
return in.color;
}
8 changes: 0 additions & 8 deletions assets/cube_120.glslf

This file was deleted.

9 changes: 0 additions & 9 deletions assets/cube_120.glslv

This file was deleted.

9 changes: 0 additions & 9 deletions assets/cube_150.glslf

This file was deleted.

9 changes: 0 additions & 9 deletions assets/cube_150.glslv

This file was deleted.

Loading
Loading