first commit
This commit is contained in:
commit
3a92f526a0
11 changed files with 2222 additions and 0 deletions
7
playground/Cargo.toml
Normal file
7
playground/Cargo.toml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[package]
|
||||
name = "playground"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
moonhare_engine = { path = "../moonhare_engine" }
|
||||
3
playground/src/main.rs
Normal file
3
playground/src/main.rs
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
fn main() {
|
||||
println!("Hello World");
|
||||
}
|
||||
8
playground/src/shaders/fragment_shader.glsl
Normal file
8
playground/src/shaders/fragment_shader.glsl
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#version 140
|
||||
|
||||
in vec3 vertex_color;
|
||||
out vec4 color;
|
||||
|
||||
void main() {
|
||||
color = vec4(vertex_color, 1.0);
|
||||
}
|
||||
12
playground/src/shaders/vertex_shader.glsl
Normal file
12
playground/src/shaders/vertex_shader.glsl
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#version 140
|
||||
|
||||
in vec2 position;
|
||||
in vec3 color;
|
||||
out vec3 vertex_color;
|
||||
|
||||
uniform mat4 matrix;
|
||||
|
||||
void main() {
|
||||
vertex_color = color;
|
||||
gl_Position = matrix * vec4(position, 0.0, 1.0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue