summaryrefslogtreecommitdiff
path: root/workspaces/test/shaders/ellipse.wgsl
diff options
context:
space:
mode:
Diffstat (limited to 'workspaces/test/shaders/ellipse.wgsl')
-rw-r--r--workspaces/test/shaders/ellipse.wgsl10
1 files changed, 1 insertions, 9 deletions
diff --git a/workspaces/test/shaders/ellipse.wgsl b/workspaces/test/shaders/ellipse.wgsl
index 69b2712..07f0c9a 100644
--- a/workspaces/test/shaders/ellipse.wgsl
+++ b/workspaces/test/shaders/ellipse.wgsl
@@ -1,16 +1,8 @@
#include "common_uniforms"
+#include "render/fullscreen_vs"
@group(0) @binding(0) var<uniform> uniforms: CommonUniforms;
-@vertex fn vs_main(@builtin(vertex_index) i: u32) -> @builtin(position) vec4<f32> {
- var pos = array<vec2<f32>, 3>(
- vec2<f32>(-1.0, -1.0),
- vec2<f32>(3.0, -1.0),
- vec2<f32>(-1.0, 3.0)
- );
- return vec4<f32>(pos[i], 0.0, 1.0);
-}
-
fn sdEllipse(p: vec2<f32>, ab: vec2<f32>) -> f32 {
var p_abs = abs(p);
if (p_abs.x > p_abs.y) {