summaryrefslogtreecommitdiff
path: root/intermediate/surface_depthonly.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'intermediate/surface_depthonly.glsl')
-rw-r--r--intermediate/surface_depthonly.glsl43
1 files changed, 43 insertions, 0 deletions
diff --git a/intermediate/surface_depthonly.glsl b/intermediate/surface_depthonly.glsl
new file mode 100644
index 0000000..f53a937
--- /dev/null
+++ b/intermediate/surface_depthonly.glsl
@@ -0,0 +1,43 @@
+#ifdef DESC
+[program]
+type: graphics
+vertex: main
+fragment: main
+
+[binding]
+name: mesh
+rate: vertex
+[attribute]
+name: position
+type: vec3
+
+[struct]
+name: MVP
+[variable]
+name: model
+type: mat4
+[variable]
+name: view_projection
+type: mat4
+
+[cbuffer]
+name: c_mvp
+type: MVP
+stage: vertex
+
+#endif
+
+#ifdef VERTEX_SHADER
+
+void main() {
+ vec4 pos = c_mvp.model * vec4(position, 1.0);
+ gl_Position = c_mvp.view_projection * pos;
+}
+
+#endif
+
+#ifdef FRAGMENT_SHADER
+
+void main() {}
+
+#endif