summaryrefslogtreecommitdiff
path: root/src/shader.wgsl
diff options
context:
space:
mode:
Diffstat (limited to 'src/shader.wgsl')
-rw-r--r--src/shader.wgsl22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/shader.wgsl b/src/shader.wgsl
deleted file mode 100644
index 6655301..0000000
--- a/src/shader.wgsl
+++ /dev/null
@@ -1,22 +0,0 @@
-struct VertexInput {
- @location(0) position: vec2<f32>,
- @location(1) color: vec3<f32>,
-}
-
-struct VertexOutput {
- @builtin(position) clip_position: vec4<f32>,
- @location(0) color: vec3<f32>,
-}
-
-@vertex
-fn vs_main(in: VertexInput) -> VertexOutput {
- var out: VertexOutput;
- out.clip_position = vec4<f32>(in.position, 0.0, 1.0);
- out.color = in.color;
- return out;
-}
-
-@fragment
-fn fs_main(in: VertexOutput) -> @location(0) vec4<f32> {
- return vec4<f32>(in.color, 1.0);
-}